From 4c77f3b0af8f69ffd7a6853c1bef678513823821 Mon Sep 17 00:00:00 2001 From: rootiest Date: Fri, 12 Jun 2026 00:40:51 -0400 Subject: [PATCH] fix: add operator vi-mode case and # prefix to hex palette in fish_prompt --- functions/fish_prompt.fish | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/functions/fish_prompt.fish b/functions/fish_prompt.fish index f600a51..99bfa25 100644 --- a/functions/fish_prompt.fish +++ b/functions/fish_prompt.fish @@ -19,15 +19,15 @@ function fish_prompt set -l last_status $status # Catppuccin Mocha hex palette - set -l c_green a6e3a1 - set -l c_red f38ba8 - set -l c_yellow f9e2af - set -l c_text cdd6f4 - set -l c_blue 89b4fa - set -l c_teal 94e2d5 - set -l c_pink f5c2e7 - set -l c_dim 6c7086 - set -l c_mauve cba6f7 + set -l c_green '#a6e3a1' + set -l c_red '#f38ba8' + set -l c_yellow '#f9e2af' + set -l c_text '#cdd6f4' + set -l c_blue '#89b4fa' + set -l c_teal '#94e2d5' + set -l c_pink '#f5c2e7' + set -l c_dim '#6c7086' + set -l c_mauve '#cba6f7' # Line/connector color tracks last exit status; brackets stay bold green set -l retc $c_green @@ -83,6 +83,10 @@ function fish_prompt set mode_str (set_color --bold $c_teal)'R'(set_color normal) case visual set mode_str (set_color --bold $c_mauve)'V'(set_color normal) + case operator + set mode_str (set_color --bold $c_teal)'O'(set_color normal) + case '*' + set mode_str (set_color --bold $c_dim)'?'(set_color normal) end set_color $retc echo -n '─'