mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 10:00:43 +08:00
Allow fish_greeting to be NULL or an array
Treat fish_greeting as a whole when show up the greeting messages. And the user may want to set fish_greeting to an null value or an array. This requires that the variable be quoted when used as an argument for switch in __fish_config_interactive. Signed-off-by: James Vega <jamessan@debian.org> [modified the commit message] Signed-off-by: Grissiom <chaos.proton@gmail.com>
This commit is contained in:
parent
9b97c55546
commit
4f9b07e979
|
@ -150,7 +150,7 @@ function __fish_config_interactive -d "Initializations that should be performed
|
|||
fish_greeting
|
||||
else
|
||||
if set -q fish_greeting
|
||||
switch $fish_greeting
|
||||
switch "$fish_greeting"
|
||||
case ''
|
||||
# If variable is empty, don't print anything, saves us a fork
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user