do not change clock color

This commit is contained in:
Mark Lowne 2020-02-11 18:48:36 +01:00
parent 652950d8fa
commit bc1efefd1f

View File

@ -7,9 +7,10 @@ function fish_right_prompt
is_dark_mode; or set -e dark_mode is_dark_mode; or set -e dark_mode
end end
set -l status_color 333; set -lq dark_mode; or set status_color DDD set -l status_color 555; set -lq dark_mode; or set status_color DDD
set -l clock_color $status_color
set -l status_glyph set -l status_glyph " "
set -l duration_glyph set -l duration_glyph
switch "$status_copy" switch "$status_copy"
@ -37,11 +38,10 @@ function fish_right_prompt
else else
if test ! -z "$status_code" if test ! -z "$status_code"
echo -sn (set_color $status_color) "$status_code " (set_color normal) echo -sn (set_color $status_color) "($status_code) " (set_color normal)
set status_glyph set status_glyph
end end
end end
echo -sn (set_color $status_color) set -q fish_right_prompt_show_clock; and echo -sn (set_color $clock_color) (date "+%H:%M:%S")
set -q fish_right_prompt_show_clock; and echo -sn (date "+%H:%M:%S")" " echo -sn (set_color $status_color) "$status_glyph" (set_color normal)
echo -sn "$status_glyph" (set_color normal)
end end