diff --git a/fish_prompt.fish b/fish_prompt.fish index 7f0179b..b47b6ef 100644 --- a/fish_prompt.fish +++ b/fish_prompt.fish @@ -107,7 +107,7 @@ function __bobthefish_hg_project_dir -d 'Print the current hg project base direc [ "$theme_display_hg" = 'no' ]; and return set d (pwd) while not [ $d = / ] - if test -e $d/.hg + if [ -e $d/.hg ] command hg root ^/dev/null return end