Search code examples
command-linepromptfish

How can I import fish previous version of prompt to newer versions?


I don't know what happened to the prompt Classic + Git Prompt that Fish used to have in the list of prompts available.

In any case I have another machine using an older version of Fish that it does have it, so I was wondering how I can export it to the newer version and why that prompt got deleted instead of increase the number of prompts in newer versions?


Solution

  • This prompt is still available, but it has been renamed to 'Classic + Vcs' because it now supports git, Mercurial and svn. You should be able to see it in the fish_config prompt chooser.

    You can always see your prompt function by running:

    functions fish_prompt
    

    (Note functions, not function)