mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-29 10:31:14 -03: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:
committed by
ridiculousfish
parent
874a675e7f
commit
ed475ab24b
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user