mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 20:33:08 +00:00
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:
parent
874a675e7f
commit
ed475ab24b
1 changed files with 3 additions and 3 deletions
|
@ -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 x(count $stagedFiles)
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue