mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-11 15:37:24 +00:00
hg prompt: Throw away string match
input
This would print redundant characters
This commit is contained in:
parent
c3971957ac
commit
8eca775977
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ function __fish_hg_prompt --description 'Write out the hg prompt'
|
|||
end
|
||||
end
|
||||
|
||||
if string match -r '^[AMCD]' $repo_status
|
||||
if string match -r '^[AMCD]' $repo_status >/dev/null
|
||||
set_color $fish_color_hg_modified
|
||||
else
|
||||
set_color $fish_color_hg_dirty
|
||||
|
|
Loading…
Reference in a new issue