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_prompt
  • fish_hg_prompt
  • fish_darcs_prompt
  • fish_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 modify fish_vcs_prompt to uncomment it. see funced.

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

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