From 655b1aa7a19291d150aa21fbd301197d1da39adf Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Fri, 28 Nov 2025 10:28:51 +0100 Subject: [PATCH] fish_prompt: remove stray initialization of fish_color_status I can't reproduce the problem mentioned in 0420901cb28 (default prompt: Set fish_color_status if unset, 2021-04-11). --- share/functions/fish_prompt.fish | 2 -- share/tools/web_config/sample_prompts/default.fish | 2 -- 2 files changed, 4 deletions(-) diff --git a/share/functions/fish_prompt.fish b/share/functions/fish_prompt.fish index 7c7ce4598..e0603500d 100644 --- a/share/functions/fish_prompt.fish +++ b/share/functions/fish_prompt.fish @@ -5,8 +5,6 @@ function fish_prompt --description 'Write out the prompt' set -l last_pipestatus $pipestatus set -lx __fish_last_status $status # Export for __fish_print_pipestatus. set -l normal (set_color normal) - set -q fish_color_status - or set -g fish_color_status red # Color the prompt differently when we're root set -l color_cwd $fish_color_cwd diff --git a/share/tools/web_config/sample_prompts/default.fish b/share/tools/web_config/sample_prompts/default.fish index 7c7ce4598..e0603500d 100644 --- a/share/tools/web_config/sample_prompts/default.fish +++ b/share/tools/web_config/sample_prompts/default.fish @@ -5,8 +5,6 @@ function fish_prompt --description 'Write out the prompt' set -l last_pipestatus $pipestatus set -lx __fish_last_status $status # Export for __fish_print_pipestatus. set -l normal (set_color normal) - set -q fish_color_status - or set -g fish_color_status red # Color the prompt differently when we're root set -l color_cwd $fish_color_cwd