fix: git status in __fish_git_prompt_informative_status (#4365)

Added and staged files weren't shown in the prompt,
had a missing $ to denote variables
This commit is contained in:
daniel-surename 2017-08-30 09:50:27 +03:00 committed by ridiculousfish
parent 874a675e7f
commit ed475ab24b

View file

@ -480,10 +480,10 @@ function __fish_git_prompt_informative_status
set -l x (count $changedFiles)
set -l y (count (string match -r "U" -- $changedFiles))
set -l dirtystate (math x - y)
set -l dirtystate (math $x - $y)
set -l x (count $stagedFiles)
set -l invalidstate (count (string match -r "U" -- $stagedFiles))
set -l stagedstate (math x - invalidstate)
set -l stagedstate (math $x - $invalidstate)
set -l untrackedfiles (command git ls-files --others --exclude-standard | wc -l | string trim)
set -l info