fish_git_prompt: Fish show_upstream

This isn't a boolean option

Fixes #9301
This commit is contained in:
Fabian Boehm 2022-10-24 19:12:30 +02:00
parent 74fd66fcbe
commit 8d5198b9b4

View file

@ -289,7 +289,8 @@ function fish_git_prompt --description "Prompt function for Git"
end
end
if contains -- "$__fish_git_prompt_showupstream" yes true 1
# (showupstream has a variety of options, not just bool)
if set -q __fish_git_prompt_showupstream
or contains -- "$__fish_git_prompt_show_informative_status" yes true 1
set p (__fish_git_prompt_show_upstream)
end