From 28609a1f76cf953568286c0c014e5283b8391d9e Mon Sep 17 00:00:00 2001 From: Justin Hileman Date: Mon, 17 Nov 2014 18:43:32 -0800 Subject: [PATCH] [bobthefish] Switch git/hg priority in prompt Add TODO to do this right :P --- fish_prompt.fish | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fish_prompt.fish b/fish_prompt.fish index 4619006..95f174e 100644 --- a/fish_prompt.fish +++ b/fish_prompt.fish @@ -358,10 +358,10 @@ function fish_prompt -d 'bobthefish, a fish theme optimized for awesome' if __bobthefish_in_virtualfish_virtualenv __bobthefish_prompt_virtualfish end - if __bobthefish_in_hg - __bobthefish_prompt_hg - else if __bobthefish_in_git - __bobthefish_prompt_git + if __bobthefish_in_git # TODO: do this right. + __bobthefish_prompt_git # if something is in both git and hg, check the length of + else if __bobthefish_in_hg # __bobthefish_project_dir vs __bobthefish_project_dir_hg + __bobthefish_prompt_hg # and pick the longer of the two. else __bobthefish_prompt_dir end