mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-20 23:45:11 +08:00
functions/fish_git_prompt: Useful status for show_upstream
Returns 0 if there is no diversion, 1 otherwise.
This commit is contained in:
parent
632c47be54
commit
f6226f0802
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user