FISH_VCS_PROMPT(1)
π FISH_VCS_PROMPT(1) β the fish-shell girlies' guide πβ¨
okay so bestie, welcome to fish_vcs_prompt(1) from the fish-shell manual. this one's short and sweet and honestly kind of iconic β it's the little function that tells your prompt what version control situation you're in. let's get into it π
β¨ NAME β¨
fish_vcs_prompt β outputs version control system info for your prompt to use π
like, it's the vibe-checker for your repo status. no cap.
πΈ SYNOPSIS πΈ
fish_vcs_prompt
and here's how you'd actually use it, fr fr:
function fish_prompt
printf '%s' $PWD (fish_vcs_prompt) ' $ '
end
π¦ DESCRIPTION π¦
so fish_vcs_prompt displays info about the current version control system (VCS) repository, if there even is one. if you're not in a repo, it's just gonna be quiet about it. no drama π
the way it works is it calls out to VCS-specific functions β like it's delegating, main character energy only π. currently supported systems are:
fish_git_promptfish_hg_promptfish_darcs_promptfish_svn_prompt
if a VCS isn't installed, the respective function just does nothing. literally nothing. it's giving respectful silence π
β οΈ heads up bestie: the Subversion prompt is disabled by default β because it's slow on large repositories π like, slow slow. to enable it, you modifyfish_vcs_promptto uncomment it. seefunced.
for more info, go read the documentation for each of the functions above π iykyk.
π EXAMPLE π
a simple prompt that displays all known VCS info β look at her go:
function fish_prompt
...
set -g __fish_git_prompt_showupstream auto
printf '%s %s$' $PWD (fish_vcs_prompt)
end
π Copyright π
fish-shell developers
and that's the whole page, bestie π«Ά no notes, she ate. this was FISH_VCS_PROMPT(1) from the fish-shell manual, version 4.9, dated Sep 08, 2026 β mwah πβ¨
π¦ where this page comes from
- arch rolling: fish 4.9.3-1 Β· GPL-2.0-only AND BSD-3-Clause AND ISC AND MIT AND PSF-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms