Last active
May 14, 2017 13:04
-
-
Save nikneroz/9adc86bf4baad4673c8b5aebc09d218f to your computer and use it in GitHub Desktop.
Fish git prompt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set normal (set_color normal) | |
set magenta (set_color magenta) | |
set yellow (set_color yellow) | |
set green (set_color green) | |
set red (set_color red) | |
set gray (set_color -o black) | |
# Fish git prompt | |
set __fish_git_prompt_showdirtystate 'yes' | |
set __fish_git_prompt_showstashstate 'yes' | |
set __fish_git_prompt_showuntrackedfiles 'yes' | |
set __fish_git_prompt_color_branch yellow | |
set __fish_git_prompt_color_upstream_ahead green | |
set __fish_git_prompt_color_upstream_behind red | |
# # Status Chars | |
# set -g __fish_git_prompt_char_dirtystate 'Ξ' | |
# set -g __fish_git_prompt_char_stagedstate '→' | |
# set -g __fish_git_prompt_char_untrackedfiles '…' | |
# set -g __fish_git_prompt_char_stashstate '●' | |
# set -g __fish_git_prompt_char_upstream_ahead '+' | |
# set -g __fish_git_prompt_char_upstream_behind '-' | |
# set -g __fish_git_prompt_char_conflictedstate '×' | |
# set -g __fish_git_prompt_char_cleanstate '✓' | |
# Status Chars | |
set __fish_git_prompt_char_dirtystate '⚡' | |
set __fish_git_prompt_char_stagedstate '→' | |
set __fish_git_prompt_char_untrackedfiles '☡' | |
set __fish_git_prompt_char_stashstate '↩' | |
set __fish_git_prompt_char_upstream_ahead '+' | |
set __fish_git_prompt_char_upstream_behind '-' | |
function fish_prompt | |
set last_status $status | |
set_color $fish_color_cwd | |
printf '%s' (prompt_pwd) | |
set_color normal | |
printf '%s ' (__fish_git_prompt) | |
set_color normal | |
end | |
set -x PATH (echo $PATH | tr ':' '\n' | grep -v /mnt/ | tr '\n' ':') | |
set -x PATH "$HOME/bin:$HOME/.local/bin:$PATH" | |
set -x PATH "$PATH:/mnt/c/Program\ Files/Docker/Docker/resources/bin" | |
rvm default |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment