From 3d0581d195d158c3b34168a2257b535db488e0df Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Sat, 18 Apr 2020 14:45:43 -0600 Subject: [PATCH] fish_hg_prompt should return 1 when not in a mercurial directory --- share/functions/fish_hg_prompt.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/functions/fish_hg_prompt.fish b/share/functions/fish_hg_prompt.fish index 2f08eda10..113567ef6 100644 --- a/share/functions/fish_hg_prompt.fish +++ b/share/functions/fish_hg_prompt.fish @@ -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)