From 94b5720343ca6c31fe75ea486a4ac5b4f30196cd Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Wed, 11 Dec 2019 10:28:38 +0100 Subject: [PATCH] prompt: remove fallback for $fish_color_host This was mostly dead, since $fish_color_host is set to normal in __fish_config_interactive. The assignment was only used if the user explicitly unsets fish_color_host (which they shouldn't, really). Anyway it's weird to use cyan, use normal instead. [ci skip] --- share/functions/fish_prompt.fish | 3 --- share/tools/web_config/sample_prompts/classic_vcs.fish | 4 ---- 2 files changed, 7 deletions(-) diff --git a/share/functions/fish_prompt.fish b/share/functions/fish_prompt.fish index eb81d5f9c..71a668643 100644 --- a/share/functions/fish_prompt.fish +++ b/share/functions/fish_prompt.fish @@ -5,9 +5,6 @@ function fish_prompt --description 'Write out the prompt' set -l last_pipestatus $pipestatus set -l normal (set_color normal) - set -q fish_color_host - or set -U fish_color_host -o cyan - # Color the prompt differently when we're root set -l color_cwd $fish_color_cwd set -l prefix diff --git a/share/tools/web_config/sample_prompts/classic_vcs.fish b/share/tools/web_config/sample_prompts/classic_vcs.fish index 04e60001d..7203b7320 100644 --- a/share/tools/web_config/sample_prompts/classic_vcs.fish +++ b/share/tools/web_config/sample_prompts/classic_vcs.fish @@ -6,10 +6,6 @@ function fish_prompt --description 'Write out the prompt' set -l last_status $status set -l normal (set_color normal) - # Initialize our variables. - set -q fish_color_host - or set -U fish_color_host -o cyan - # Color the prompt differently when we're root set -l color_cwd $fish_color_cwd set -l prefix