mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 13:39:02 +00:00
git_prompt: Fix bad test if bash.showUntrackedFiles isn't set
This commit is contained in:
parent
f30a5fe288
commit
969928e500
1 changed files with 2 additions and 1 deletions
|
@ -375,7 +375,8 @@ function __fish_git_prompt --description "Prompt function for Git"
|
|||
end
|
||||
|
||||
if test -n "$__fish_git_prompt_showuntrackedfiles"
|
||||
if test (git config --bool bash.showUntrackedFiles) != false
|
||||
set -l config (git config --bool bash.showUntrackedFiles)
|
||||
if test "$config" != false
|
||||
if git ls-files --others --exclude-standard --error-unmatch -- '*' >/dev/null ^/dev/null
|
||||
set u $___fish_git_prompt_char_untrackedfiles
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue