mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 10:01:46 +08:00
fish_hg_prompt should return 1 when not in a mercurial directory
This commit is contained in:
parent
3e8422f472
commit
3d0581d195
|
@ -28,7 +28,7 @@ function fish_hg_prompt --description 'Write out the hg prompt'
|
||||||
end
|
end
|
||||||
|
|
||||||
set -l root (fish_print_hg_root)
|
set -l root (fish_print_hg_root)
|
||||||
or return 0
|
or return 1
|
||||||
|
|
||||||
# Read branch and bookmark
|
# Read branch and bookmark
|
||||||
set -l branch (cat $root/branch 2>/dev/null; or echo default)
|
set -l branch (cat $root/branch 2>/dev/null; or echo default)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user