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.
- 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 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.
- Displaying hostname/username
- Indicator if user is root
- Indicator for jobs in the background (
โฆ
). - Current Node.js version, through nvm/nodenv/n (
โฌข
). - Current Ruby version, through rvm/rbenv/chruby (
๐
). - Current Python pyenv (
๐
). - Package version, if there's is a package in current directory (
๐ฆ
). - Current battery level and status:
โก
- charging;โฃ
- discharging;โข
- fully charged.
- 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
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 ability to customize or disable specific elements of Spacefish. All options must be overridden in your config.fish
.
MIT ยฉ Matan Kushner