functions/fish_git_prompt: Useful status for show_upstream

Returns 0 if there is no diversion, 1 otherwise.
This commit is contained in:
Fabian Homborg 2019-03-19 10:24:40 +01:00
parent 632c47be54
commit f6226f0802

View File

@ -332,6 +332,9 @@ function __fish_git_prompt_show_upstream --description "Helper function for fish
echo "$___fish_git_prompt_char_upstream_prefix$___fish_git_prompt_char_upstream_diverged"
end
end
# For the return status
test "$count" = "0 0"
end
function fish_git_prompt --description "Prompt function for Git"