* fix git prompt.

This commit is contained in:
Luis Angel Vicente Sanchez 2015-01-09 15:27:15 +00:00 committed by Bruno Pinto
parent edbea29aae
commit 15eef514ca

View File

@ -20,23 +20,21 @@ function fish_prompt
set -l red (set_color red) set -l red (set_color red)
set -l cyan (set_color cyan) set -l cyan (set_color cyan)
set -l white (set_color white) set -l white (set_color white)
set -l gray (set_color -o cyan)
set -l brwhite (set_color -o white)
# Configure __fish_git_prompt # Configure __fish_git_prompt
set -g __fish_git_prompt_showdirtystate true set -g __fish_git_prompt_char_stateseparator ' '
set -g __fish_git_prompt_showuntrackedfiles true
set -g __fish_git_prompt_showstashstate true
set -g __fish_git_prompt_show_informative_status true
set -g __fish_git_prompt_color white set -g __fish_git_prompt_color white
set -g __fish_git_prompt_color_flags red set -g __fish_git_prompt_color_flags red
set -g __fish_git_prompt_color_prefix cyan set -g __fish_git_prompt_color_prefix cyan
set -g __fish_git_prompt_color_suffix cyan set -g __fish_git_prompt_color_suffix cyan
set -g __fish_git_prompt_showdirtystate true
set -g __fish_git_prompt_showuntrackedfiles true
set -g __fish_git_prompt_showstashstate true
set -g __fish_git_prompt_show_informative_status true
# Line 1 # Line 1
echo -n $cyan'┌['$white$USER$cyan'@'$white$__fish_prompt_hostname$cyan']'$white'-'$cyan'('$white(prompt_pwd)$cyan')' echo -n $cyan'┌['$white$USER$cyan'@'$white$__fish_prompt_hostname$cyan']'$white'-'$cyan'('$white(prompt_pwd)$cyan')'
#-['$white$__fish_git_prompt$cyan']-' __fish_git_prompt "-[git://%s]-"
__fish_git_prompt
echo echo
# Line 2 # Line 2