From bc1efefd1ff55b99d89ae39f78cebb8c72e389a9 Mon Sep 17 00:00:00 2001 From: Mark Lowne Date: Tue, 11 Feb 2020 18:48:36 +0100 Subject: [PATCH] do not change clock color --- fish_right_prompt.fish | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/fish_right_prompt.fish b/fish_right_prompt.fish index b22e0c0..aba90d8 100644 --- a/fish_right_prompt.fish +++ b/fish_right_prompt.fish @@ -7,9 +7,10 @@ function fish_right_prompt is_dark_mode; or set -e dark_mode 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 switch "$status_copy" @@ -37,11 +38,10 @@ function fish_right_prompt else 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 ┃ end end - echo -sn (set_color $status_color) - set -q fish_right_prompt_show_clock; and echo -sn (date "+%H:%M:%S")" " - echo -sn "$status_glyph" (set_color normal) + set -q fish_right_prompt_show_clock; and echo -sn (set_color $clock_color) (date "+%H:%M:%S") + echo -sn (set_color $status_color) "$status_glyph" (set_color normal) end