git ahead behind bug fixed

This commit is contained in:
Joseph Tannhuber 2014-08-03 18:50:09 +02:00
parent 7272e4ebec
commit c3ca7d21b5

View File

@ -68,6 +68,7 @@ function fish_git_prompt_cm --description "Displays the git symbols"
if test $is_repo="true"
set -l git_ahead_behind (__budspencer_is_git_ahead_or_behind)
if test (count $git_ahead_behind) -eq 2
if test $git_ahead_behind[1] -gt 0
if test $git_style = "symbols"
set git_prompt (set_color -o $budspencer_colors[10])" ↑"
@ -83,6 +84,7 @@ function fish_git_prompt_cm --description "Displays the git symbols"
set git_prompt $git_prompt(set_color -o $budspencer_colors[10])" "$git_ahead_behind[2]
end
end
end
set -l git_status (__budspencer_git_status)
if test $git_status[1] -gt 0
@ -141,7 +143,7 @@ function fish_git_prompt_cm --description "Displays the git symbols"
set git_prompt $git_prompt(set_color -o $budspencer_colors[16])" "$git_stashed
end
end
echo $git_prompt
echo -n $git_prompt
end
end