mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-19 20:22:45 +08:00
default prompt: Set fish_color_status if unset
Otherwise this'll error with --no-config
This commit is contained in:
parent
5ddb1adac1
commit
0420901cb2
|
@ -5,6 +5,8 @@ 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 --background=red white
|
||||
|
||||
# Color the prompt differently when we're root
|
||||
set -l color_cwd $fish_color_cwd
|
||||
|
|
|
@ -5,6 +5,8 @@ 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 --background=red white
|
||||
|
||||
# Color the prompt differently when we're root
|
||||
set -l color_cwd $fish_color_cwd
|
||||
|
|
Loading…
Reference in New Issue
Block a user