mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-27 14:45:13 +08:00
Remove unused "prefix" variable in prompt presets
[ci skip]
This commit is contained in:
parent
bcf2e2cdbd
commit
23042b6a43
@ -8,7 +8,6 @@ function fish_prompt --description 'Write out the prompt'
|
|||||||
|
|
||||||
# Color the prompt differently when we're root
|
# Color the prompt differently when we're root
|
||||||
set -l color_cwd $fish_color_cwd
|
set -l color_cwd $fish_color_cwd
|
||||||
set -l prefix
|
|
||||||
set -l suffix '>'
|
set -l suffix '>'
|
||||||
if contains -- $USER root toor
|
if contains -- $USER root toor
|
||||||
if set -q fish_color_cwd_root
|
if set -q fish_color_cwd_root
|
||||||
|
@ -57,7 +57,6 @@ function fish_prompt --description 'Write out the prompt'
|
|||||||
end
|
end
|
||||||
|
|
||||||
set -l color_cwd
|
set -l color_cwd
|
||||||
set -l prefix
|
|
||||||
set -l suffix
|
set -l suffix
|
||||||
switch "$USER"
|
switch "$USER"
|
||||||
case root toor
|
case root toor
|
||||||
|
Loading…
x
Reference in New Issue
Block a user