mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
Counting the number of unstaged files using wc -l
pipe
This commit is contained in:
parent
816857ead2
commit
077a0e1b47
1 changed files with 1 additions and 1 deletions
|
@ -478,7 +478,7 @@ function __fish_git_prompt_informative_status
|
|||
set -l dirtystate (math (count $changedFiles) - (count (echo $changedFiles | grep "U")))
|
||||
set -l invalidstate (count (echo $stagedFiles | grep "U"))
|
||||
set -l stagedstate (math (count $stagedFiles) - $invalidstate)
|
||||
set -l untrackedfiles (count (command git ls-files --others --exclude-standard))
|
||||
set -l untrackedfiles (string trim (command git ls-files --others --exclude-standard | wc -l))
|
||||
|
||||
set -l info
|
||||
|
||||
|
|
Loading…
Reference in a new issue