From 3c369a665ac9bcc4078b37e02bc111b6cd6c7712 Mon Sep 17 00:00:00 2001 From: ben Date: Fri, 13 Jan 2017 06:46:30 +1100 Subject: [PATCH] Resolved formatting error Fixed prompt segments that were out of place --- fish_prompt.fish | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/fish_prompt.fish b/fish_prompt.fish index 76204fa..c08dfe2 100644 --- a/fish_prompt.fish +++ b/fish_prompt.fish @@ -408,13 +408,19 @@ function __bobthefish_prompt_user -S -d 'Display actual user if different from $ end if [ "$theme_display_hostname" = 'yes' ] - __bobthefish_start_segment $__color_hostname set -l IFS . hostname | read -l hostname __ if [ "$theme_display_user" = 'yes' ] echo -ns '@' $hostname + else + __bobthefish_start_segment $__color_hostname + echo -ns $hostname + end + end + + if [ "$theme_display_user" = 'yes' -o "$theme_display_hostname" = 'yes' ] + echo -ns ' ' end - echo -ns ' ' end function __bobthefish_prompt_hg -S -a current_dir -d 'Display the actual hg state'