Only show right prompt separator when date and cmd duration exist.

See #48
This commit is contained in:
Justin Hileman 2016-06-08 01:17:19 -07:00
parent e39a850ed0
commit fc50e9d6c5

View File

@ -21,6 +21,9 @@ function __bobthefish_cmd_duration -S -d 'Show command duration'
set_color $fish_color_normal
set_color $fish_color_autosuggestion
[ "$theme_display_date" = "no" ]
or echo -ns ' ' $__bobthefish_left_arrow_glyph
end
function __bobthefish_timestamp -S -d 'Show the current timestamp'
@ -28,7 +31,6 @@ function __bobthefish_timestamp -S -d 'Show the current timestamp'
set -q theme_date_format
or set -l theme_date_format "+%c"
echo -n $__bobthefish_left_arrow_glyph
echo -n ' '
date $theme_date_format
end