From e766f6c003550a3d7d99a88413b69098e29ef112 Mon Sep 17 00:00:00 2001 From: Justin Hileman Date: Wed, 26 Nov 2014 12:00:16 -0500 Subject: [PATCH] [bobthefish] Default hg segment to off MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit … due to performance concerns. See #258 See #262 --- fish_prompt.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fish_prompt.fish b/fish_prompt.fish index 207cf15..9a9e3e5 100644 --- a/fish_prompt.fish +++ b/fish_prompt.fish @@ -13,7 +13,7 @@ # You can override some default options in your config.fish: # # set -g theme_display_git no -# set -g theme_display_hg no +# set -g theme_display_hg yes # set -g theme_display_virtualenv no # set -g theme_display_ruby no # set -g theme_display_user yes @@ -104,7 +104,7 @@ function __bobthefish_git_project_dir -d 'Print the current git project base dir end function __bobthefish_hg_project_dir -d 'Print the current hg project base directory' - [ "$theme_display_hg" = 'no' ]; and return + [ "$theme_display_hg" = 'yes' ]; or return set d (pwd) while not [ $d = / ] if [ -e $d/.hg ]