A fish theme optimized for people who use:
- Solarized
- Git
- Mercurial (requires 'hg prompt')
- SVN
- Unicode-compatible fonts and terminals (Use a Powerline patched font, e.g., from here: https://github.com/powerline/fonts)
- Fish Vi-mode
For Mac users, I highly recommend iTerm 2 + Solarized Dark
- If the previous command failed (✘)
- If private mode is enabled (🔒)
- User @ Hostname (if user is not DEFAULT_USER, which can be set in your profile)
- Git/HG/SVN status
- Branch () or detached head (➦)
- Current branch / SHA1 in detached head state
- Dirty working directory (±, color change)
- By default, git repos will show as dirty if there are untracked files. This can be changed by adding
set -g fish_git_prompt_untracked_files no
to yourconfig.fish
. This value is passed intogit status --untracked-files
, so any value git supports is valid for this command
- By default, git repos will show as dirty if there are untracked files. This can be changed by adding
- Current working directory
- Elevated (root) privileges (⚡)
- Current virtual environment (Python virtualenv and Nix Shell)
You will probably want to disable the default virtualenv prompt. Add to your
init.fish
:set -gx VIRTUAL_ENV_DISABLE_PROMPT 1
- Indicate vi mode.
- Source control blacklist. To disable source control prompts in certain directories, you can add the following to your
init.fish
orconfig.fish
:set -g scm_prompt_blacklist "/path/to/blacklist"
.
Ported from https://gist.github.com/agnoster/3712874.