FISH_SVN_PROMPT(1)

okay so bestie, this is fish_svn_prompt(1) from fish-shell β€” the prompt helper that’s lowkey iconic ✨. It’s giving β€œSubversion info but make it cute,” and we’re obsessed 🫢.

πŸ’– NAME πŸ’–

fish_svn_prompt β€” output Subversion information for use in a prompt. That’s it, that’s the whole vibe πŸ’….

🌸 SYNOPSIS 🌸

fish_svn_prompt

and like, here’s how you slot it into a prompt, fr fr:

function fish_prompt
    printf '%s' $PWD (fish_svn_prompt) ' $ '
end

πŸ¦‹ DESCRIPTION πŸ¦‹

The fish_svn_prompt function displays information about the current Subversion repository, if any. No cap β€” if there’s an svn repo in play, this function is ready to spill the details πŸ’….

🚨 real talk: Subversion <https://subversion.apache.org/> (svn) must be installed. Like, actually installed. The function can’t manifest it out of thin air, bestie 😭.

There are numerous customization options, which can be controlled with fish variables. Yes, you read that right β€” numerous. Tune it till it slays 🌈.

  • __fish_svn_prompt_color_revision β€” the colour of the revision number to display in the prompt 🎨
  • __fish_svn_prompt_char_separator β€” the separator between status characters 🧚

A number of variables control the symbol ("display") and color ("color") for the different status indicators. Here’s the full roster, bestie β€” every single one, no skipping, periodt:

  • __fish_svn_prompt_char_added_display β€” the display symbol for added
  • __fish_svn_prompt_char_added_color β€” the colour value for added
  • __fish_svn_prompt_char_conflicted_display β€” the display symbol for conflicted
  • __fish_svn_prompt_char_conflicted_color β€” the colour value for conflicted
  • __fish_svn_prompt_char_deleted_display β€” the display symbol for deleted
  • __fish_svn_prompt_char_deleted_color β€” the colour value for deleted
  • __fish_svn_prompt_char_ignored_display β€” the display symbol for ignored
  • __fish_svn_prompt_char_ignored_color β€” the colour value for ignored
  • __fish_svn_prompt_char_modified_display β€” the display symbol for modified
  • __fish_svn_prompt_char_modified_color β€” the colour value for modified
  • __fish_svn_prompt_char_replaced_display β€” the display symbol for replaced
  • __fish_svn_prompt_char_replaced_color β€” the colour value for replaced
  • __fish_svn_prompt_char_unversioned_external_display β€” the display symbol for unversioned external
  • __fish_svn_prompt_char_unversioned_external_color β€” the colour value for unversioned external
  • __fish_svn_prompt_char_unversioned_display β€” the display symbol for unversioned
  • __fish_svn_prompt_char_unversioned_color β€” the colour value for unversioned
  • __fish_svn_prompt_char_missing_display β€” the display symbol for missing
  • __fish_svn_prompt_char_missing_color β€” the colour value for missing
  • __fish_svn_prompt_char_versioned_obstructed_display β€” the display symbol for versioned obstructed
  • __fish_svn_prompt_char_versioned_obstructed_color β€” the colour value for versioned obstructed
  • __fish_svn_prompt_char_locked_display β€” the display symbol for locked
  • __fish_svn_prompt_char_locked_color β€” the colour value for locked
  • __fish_svn_prompt_char_scheduled_display β€” the display symbol for scheduled
  • __fish_svn_prompt_char_scheduled_color β€” the colour value for scheduled
  • __fish_svn_prompt_char_switched_display β€” the display symbol for switched
  • __fish_svn_prompt_char_switched_color β€” the colour value for switched
  • __fish_svn_prompt_char_token_present_display β€” the display symbol for token present
  • __fish_svn_prompt_char_token_present_color β€” the colour value for token present
  • __fish_svn_prompt_char_token_other_display β€” the display symbol for token other
  • __fish_svn_prompt_char_token_other_color β€” the colour value for token other
  • __fish_svn_prompt_char_token_stolen_display β€” the display symbol for token stolen
  • __fish_svn_prompt_char_token_stolen_color β€” the colour value for token stolen
  • __fish_svn_prompt_char_token_broken_display β€” the display symbol for token broken
  • __fish_svn_prompt_char_token_broken_color β€” the colour value for token broken

See also fish_vcs_prompt <>, which will call all supported version control prompt functions, including git, Mercurial and Subversion. It’s the group chat that pulls everyone in 😌.

πŸŽ€ EXAMPLE πŸŽ€

A simple prompt that displays svn info:

function fish_prompt
    ...
    printf '%s %s$' $PWD (fish_svn_prompt)
end

This is literally the plug-and-play vibe, iykyk πŸ’œ.

Copyright fish-shell developers. They ate, no crumbs πŸ‘‘.


mwah πŸ’‹ β€” this page is from fish-shell source/version 4.9, dated Sep 08, 2026. Byeee bestie, go make your prompt iconic πŸ¦‹πŸ’….

πŸ“¦ 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