]> Freerunner's - dotfiles.git/commitdiff
fish: restyle nim prompt theme
authorAndre Ramnitz <tux.rising@gmail.com>
Sat, 23 Dec 2023 17:14:04 +0000 (18:14 +0100)
committerAndre Ramnitz <tux.rising@gmail.com>
Sun, 18 Aug 2024 16:18:52 +0000 (18:18 +0200)
config/fish/functions/fish_prompt.fish

index b7d38e683c639e0a4eceb3c88c8514f9f8a06ca1..b1a13c539b45ae67658ba4056bd6fe62ba235a03 100644 (file)
@@ -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