fish_hg_prompt should return 1 when not in a mercurial directory

This commit is contained in:
Alan Somers 2020-04-18 14:45:43 -06:00 committed by Johannes Altmanninger
parent 3e8422f472
commit 3d0581d195

View File

@ -28,7 +28,7 @@ function fish_hg_prompt --description 'Write out the hg prompt'
end
set -l root (fish_print_hg_root)
or return 0
or return 1
# Read branch and bookmark
set -l branch (cat $root/branch 2>/dev/null; or echo default)