A Fish Shell prompt for Astronauts.
Spacefish is a Fish Shell port of Spaceship; the minimalistic, powerful and extremely customizable Zsh prompt. It combines everything you may need for convenient work, without unnecessary complications, like a real spacefish.
- Indicator if user is root
- Prompt character turns red if the last command exits with non-zero code.
- Execution time of the last command if it exceeds 5 seconds.
- Current Node.js version, through nvm/nodenv/node (
β¬’
). - Current Ruby version, through rvm/rbenv (
π
). - Package version, if there's is a package in current directory (
π¦
). - Current Git branch and rich repo status:
?
β untracked changes;+
β uncommitted changes in the index;!
β unstaged changes;Β»
β renamed files;β
β deleted files;$
β stashed changes;=
β unmerged changes;β‘
β ahead of remote branch;β£
β behind of remote branch;β
β diverged chages.
- Current battery level and status:
β‘
- charging;β£
- discharging;β’
- fully charged.
- Displaying hostname/username
- Indicator for jobs in the background (
β¦
). - Current Python pyenv (
π
). - Current Ruby version, through chruby/asdf (
π
). - Optional exit-code of last command.
- Optional time stamps 12/24hr in format.
Want more features? Please, open an issue or send pull request.
To get spacefish working correctly you will need:
fish
(v2.7.0 or newer)- Powerline Font must be installed and enabled in your terminal.
$ fisher matchai/spacefish
$ omf install spacefish
Spacefish works well out of the box, but you can customize almost everything if you want.
- Options β Tweak section's behavior with tons of options.
You have the ability to customize or disable specific elements of Spacefish. All options must be overridden in your config.fish
.
Having issues? Take a look at our Troubleshooting page.
Still struggling? Please file an issue, describe your problem, and we will gladly help you.
MIT Β© Matan Kushner