[bobthefish] Switch git/hg priority in prompt

Add TODO to do this right :P
pull/2/head
Justin Hileman 10 years ago
parent c1531ecfea
commit 28609a1f76

@ -358,10 +358,10 @@ function fish_prompt -d 'bobthefish, a fish theme optimized for awesome'
if __bobthefish_in_virtualfish_virtualenv if __bobthefish_in_virtualfish_virtualenv
__bobthefish_prompt_virtualfish __bobthefish_prompt_virtualfish
end end
if __bobthefish_in_hg if __bobthefish_in_git # TODO: do this right.
__bobthefish_prompt_hg __bobthefish_prompt_git # if something is in both git and hg, check the length of
else if __bobthefish_in_git else if __bobthefish_in_hg # __bobthefish_project_dir vs __bobthefish_project_dir_hg
__bobthefish_prompt_git __bobthefish_prompt_hg # and pick the longer of the two.
else else
__bobthefish_prompt_dir __bobthefish_prompt_dir
end end

Loading…
Cancel
Save