mirror of
https://github.com/lowne/fish-prompt-metro.git
synced 2024-10-27 20:34:12 +00:00
do not change clock color
This commit is contained in:
parent
652950d8fa
commit
bc1efefd1f
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user