From 1d669351e0e65ffd89288f6a13dccc0ee0b48b90 Mon Sep 17 00:00:00 2001 From: Andre Ramnitz Date: Sat, 23 Dec 2023 18:14:04 +0100 Subject: [PATCH] fish: restyle nim prompt theme --- config/fish/functions/fish_prompt.fish | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/config/fish/functions/fish_prompt.fish b/config/fish/functions/fish_prompt.fish index b7d38e68..b1a13c53 100644 --- a/config/fish/functions/fish_prompt.fish +++ b/config/fish/functions/fish_prompt.fish @@ -1,6 +1,6 @@ function fish_prompt # This prompt shows: - # - green lines if the last return command is OK, red otherwise + # - white lines if the last return command is OK, red otherwise # - your user name, in red if root or yellow otherwise # - your hostname, in cyan if ssh or blue otherwise # - the current path (with prompt_pwd) @@ -21,7 +21,7 @@ function fish_prompt # ╰─>$ echo there set -l retc red - test $status = 0; and set retc green + test $status = 0; and set retc white set -q __fish_git_prompt_showupstream or set -g __fish_git_prompt_showupstream auto @@ -34,20 +34,20 @@ function fish_prompt set_color normal set_color $retc echo -n '─' - set_color -o green + set_color -o white echo -n '[' set_color normal test -n $field_name and echo -n $field_name: set_color $retc echo -n $field_value - set_color -o green + set_color -o white echo -n ']' end set_color $retc echo -n '┬─' - set_color -o green + set_color -o white echo -n [ if functions -q fish_is_root_user; and fish_is_root_user @@ -69,7 +69,7 @@ function fish_prompt echo -n (prompt_hostname) set_color -o white echo -n :(prompt_pwd) - set_color -o green + set_color -o white echo -n ']' # Date @@ -87,9 +87,9 @@ function fish_prompt case default set mode (set_color --bold red)N case insert - set mode (set_color --bold green)I + set mode (set_color --bold white)I case replace_one - set mode (set_color --bold green)R + set mode (set_color --bold white)R echo '[R]' case replace set mode (set_color --bold cyan)R -- 2.51.2