Port of the
pure
ZSH theme to Fish ๐
Via cURL:
$ # Download the installer to `/tmp`
$ curl -Ls https://raw.github.com/rafaelrinaldi/pure/master/installer.fish > /tmp/pure_installer.fish
$ # Source and trigger the installer
$ source /tmp/pure_installer.fish; and install_pure
$ fisher rafaelrinaldi/pure
$ omf install pure
- Fully customizable
- Display current directory tail
- Display Git branch name
- Display whether or not the working copy is dirty
- Display โก if there are stuff to be pushed
- Display โฃ if there are stuff to be pulled
- Display prompt symbol in red if previous command has failed
- Display the current folder and command when a process is running
- Display username and host when in an SSH session
- Display duration of failed process (defaults to
5
) - Display python virtualenv name if activated
You can tweak pretty much everything in pure
by overriding variables in your config.fish
file:
# Change the prompt text
set pure_symbol_prompt "~>"
set pure_symbol_git_down_arrow "v"
set pure_symbol_git_up_arrow "^"
set pure_symbol_git_dirty "!"
set pure_symbol_horizontal_bar "_"
# Change the base colors
set pure_color_blue (set_color blue)
set pure_color_cyan (set_color cyan)
set pure_color_gray (set_color 93A1A1)
set pure_color_magenta (set_color magenta)
set pure_color_normal (set_color normal)
set pure_color_red (set_color red)
set pure_color_white (set_color white)
set pure_color_yellow (set_color yellow)
# Change the colors used on symbols, attributes and events
set pure_color_success (set_color green)
set pure_color_error (set_color magenta)
set pure_color_folder (set_color yellow)
set pure_color_duration (set_color --background blue)
set pure_color_git_dirty $pure_color_gray
set pure_color_git_branch $pure_color_gray
set pure_color_git_arrow $pure_color_cyan
set pure_color_virtualenv $pure_color_gray
set pure_color_ssh_username $pure_color_gray
set pure_color_ssh_host $pure_color_gray
set pure_color_ssh_root $pure_color_white
set pure_color_ssh_host_user_seperator $pure_color_gray
# Change where the username and host is displayed
# 0 - end of prompt, default
# 1 - start of prompt
# Any other value defaults to the default behaviour
set pure_user_host_location 1
# Show exit code of last command as a separate prompt character. As described here: https://github.com/sindresorhus/pure/wiki#show-exit-code-of-last-command-as-a-separate-prompt-character
# 0 - single prompt character, default
# 1 - separate prompt character
# Any other value defaults to the default behaviour
set pure_separate_prompt_on_error 1
# Max execution time of a process before its run time is shown when it exits
set pure_command_max_exec_time 5
requirements: fishtape
.
fishtape tests/*.test.fish
Kudos to all our awesome ๐ contributors ๐
MIT ยฉ Rafael Rinaldi