mirror of
https://github.com/lowne/fish-prompt-metro.git
synced 2024-10-27 20:34:12 +00:00
make git prompt blue when clean repo with untracked files
This commit is contained in:
parent
0d4f801150
commit
887419589a
@ -64,6 +64,9 @@ function fish_prompt
|
||||
|
||||
else if git_is_touched
|
||||
set git_color white red
|
||||
|
||||
else if git_has_untracked
|
||||
set git_color white blue
|
||||
end
|
||||
|
||||
if git_is_detached_head
|
||||
|
3
functions/git_has_untracked.fish
Normal file
3
functions/git_has_untracked.fish
Normal file
@ -0,0 +1,3 @@
|
||||
function git_has_untracked -d "Test if there are any untracked files in the working tree"
|
||||
test "0" != (git_untracked_files)
|
||||
end
|
Loading…
Reference in New Issue
Block a user