mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-01 00:02:00 +08:00
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]
This commit is contained in:
parent
2f1a5e65d8
commit
94b5720343
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user