
Add it to your ~/.config/fish/config.fish file:
Theme octofish
Open a new terminal session and run omf install.
You will probably need a Powerline-patched font for this to work. I recommend picking one of these.
This theme is based on BobTheFish and the right shell comes directly from FishLine.
- A helpful greeting, displaying the IP address and uptime in days.
- Powerline-style visual hotness (fits perfectly with iTerm2 Solarized Dark).
- Visual indication that you can't write to the current directory (either a lock or a different background on the path)
- An abbreviated path.
- A glyph indicating current privileges ($ for user, # for root)
- A nice and powerful Git right-prompt.
- Optionally shows last command duration on the right prompt.
- A visual indicator of your privilege level
- User@Host
- Current RVM or rbenv (Ruby) version
- Current virtualenv (Python) version
- Abbreviated parent directory
- Either a lock, or a red background when PWD is locked for writing
- Flags:
- Previous command failed (✘)
- Background jobs (⚙)
- A tick if you're clean
- Vertical arrows if you have some commit ahead or behind upstream
- A slope sign for untracked files
- A bolt for unstaged modifications (dirty state)
- Your workflow is considered clean if there's nothing to commit or stage and no untracked file.
You can override some default options in your config.fish:
set -g theme_display_duration yes #Display the duration of last command
set -g theme_display_virtualenv no #Virtual Env.
set -g theme_display_ruby no #Ruby version
set -g theme_display_padlock yes #Padlock (when PWD is locked for writing)