__fish_git_prompt: untracked files using git ls-files | wc -l | string trim

This commit is contained in:
Boris Aranovich 2016-08-09 22:50:26 +03:00 committed by Kurtis Rader
parent 077a0e1b47
commit dc02587ac4

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 (string trim (command git ls-files --others --exclude-standard | wc -l))
set -l untrackedfiles (command git ls-files --others --exclude-standard | wc -l | string trim)
set -l info