mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-20 22:05:54 +08:00
__fish_git_prompt: untracked files using git ls-files | wc -l | string trim
This commit is contained in:
parent
077a0e1b47
commit
dc02587ac4
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user