Resolved formatting error

Fixed prompt segments that were out of place
This commit is contained in:
ben 2017-01-13 06:46:30 +11:00
parent 0e9c469c6f
commit 3c369a665a

View File

@ -408,13 +408,19 @@ function __bobthefish_prompt_user -S -d 'Display actual user if different from $
end end
if [ "$theme_display_hostname" = 'yes' ] if [ "$theme_display_hostname" = 'yes' ]
__bobthefish_start_segment $__color_hostname
set -l IFS . set -l IFS .
hostname | read -l hostname __ hostname | read -l hostname __
if [ "$theme_display_user" = 'yes' ] if [ "$theme_display_user" = 'yes' ]
echo -ns '@' $hostname 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 end
echo -ns ' '
end end
function __bobthefish_prompt_hg -S -a current_dir -d 'Display the actual hg state' function __bobthefish_prompt_hg -S -a current_dir -d 'Display the actual hg state'