mirror of
https://github.com/oh-my-fish/theme-bobthefish.git
synced 2024-10-27 20:34:23 +00:00
Only show right prompt separator when date and cmd duration exist.
See #48
This commit is contained in:
parent
e39a850ed0
commit
fc50e9d6c5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user