Counting the number of unstaged files using wc -l pipe

This commit is contained in:
Boris Aranovich 2016-08-06 18:49:36 +03:00 committed by Kurtis Rader
parent 816857ead2
commit 077a0e1b47

View file

@ -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