From 620dbedef751c1c4eab3840b5ed43eee465723ff Mon Sep 17 00:00:00 2001 From: Justin Hileman <justin@justinhileman.info> Date: Sun, 23 Nov 2014 14:41:29 -0800 Subject: [PATCH] [bobthefish] One more hg speedup. Send along the directory where we already found the .hg to throw hg a bone. --- themes/bobthefish/fish_prompt.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/bobthefish/fish_prompt.fish b/themes/bobthefish/fish_prompt.fish index b47b6ef..207cf15 100644 --- a/themes/bobthefish/fish_prompt.fish +++ b/themes/bobthefish/fish_prompt.fish @@ -108,7 +108,7 @@ function __bobthefish_hg_project_dir -d 'Print the current hg project base direc set d (pwd) while not [ $d = / ] if [ -e $d/.hg ] - command hg root ^/dev/null + command hg root --cwd "$d" ^/dev/null return end set d (dirname $d) -- GitLab