A fish theme optimized for people who use:
- Solarized
- Git
- Mercurial (requires 'hg prompt')
- SVN
- Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)
For Mac users, I highly recommend iTerm 2 + Solarized Dark
- If the previous command failed (✘)
- User @ Hostname (if user is not DEFAULT_USER, which can then 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)
- Working directory
- Elevated (root) privileges (⚡)
- Current virtualenv (Python)
You will probably want to disable the default virtualenv prompt. Add to your
init.fish
:set --export VIRTUAL_ENV_DISABLE_PROMPT 1
- Indicate vi mode. (If you've set
fish_vi_mode
in your config and don't like the ugly left prompt indicator you can solve this by replacing it withset -g fish_key_bindings fish_vi_key_bindings
and then removing theif set -q __fish_vi_mode
check at the bottom of thefish_right_prompt.fish
)
Ported from https://gist.github.com/agnoster/3712874.