From f046c9c5422a83f0fa72c4adc84aed52d14fb624 Mon Sep 17 00:00:00 2001 From: Justin Hileman Date: Mon, 17 Nov 2014 18:40:30 -0800 Subject: [PATCH] =?UTF-8?q?[bobthefish]=20Add=20=E2=98=BF=20(mercury)=20gl?= =?UTF-8?q?yph=20to=20hg=20prompt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This makes it easier (possible?) to distinguish between hg and git repos at a glance. --- themes/bobthefish/fish_prompt.fish | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/themes/bobthefish/fish_prompt.fish b/themes/bobthefish/fish_prompt.fish index 76a88e0..4619006 100644 --- a/themes/bobthefish/fish_prompt.fish +++ b/themes/bobthefish/fish_prompt.fish @@ -31,6 +31,7 @@ set __bobthefish_detached_glyph \u27A6 set __bobthefish_nonzero_exit_glyph '! ' set __bobthefish_superuser_glyph '$ ' set __bobthefish_bg_job_glyph '% ' +set __bobthefish_hg_glyph \u263F # Python glyphs set __bobthefish_superscript_glyph \u00B9 \u00B2 \u00B3 @@ -249,6 +250,9 @@ function __bobthefish_prompt_hg -d 'Display the actual hg state' __bobthefish_path_segment (__bobthefish_project_dir_hg) + __bobthefish_start_segment $flag_bg $flag_fg + echo -n -s $__bobthefish_hg_glyph ' ' + __bobthefish_start_segment $flag_bg $flag_fg set_color $flag_fg --bold echo -n -s (__bobthefish_hg_branch) $flags ' '