mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-03 15:01:16 -03:00
fish_hg_prompt should return 1 when not in a mercurial directory
This commit is contained in:
committed by
Johannes Altmanninger
parent
3e8422f472
commit
3d0581d195
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user