This is a theme for fish that focuses on staying out of the way while giving helpful information, in particular when working with Git.
- Minimal base prompt.
- Indicates if previous command failed.
- Shows compact Git status with
- the number of added, modified, and removed files, as well as the number of stashes;
- the type and name of the current revision; and
- indication whether a merge or rebase is happening.
- Gives visual indication when you're logged in via SSH, or logged in as anyone but the default user. Shows a bright red "!" if you are logged in as root.
Note: This theme is designed for a light-on-dark theme like Solarized but should work in a dark-on-light terminal with a few terminal color tweaks.
Install using Oh My Fish:
omf install https://github.com/reitzig/theme-dmorrell.git
omf theme dmorrell
Set the list of default users by adding
set -g default_user "me" "buddy"
to your .config/fish/config.fish
.
Of course, this only makes sense if you use the same config across multiple accounts.
You can also add the same line to your own fork of the theme.