From: James Vega <jamessan@debian.org>
Subject: [PATCH] Allow fish_greeting to be empty
As the greeting being displayed every time you start a shell can be
annoying, the user may want to set fish_greeting to an empty value.
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>
---
share/functions/__fish_config_interactive.fish | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/share/functions/__fish_config_interactive.fish b/share/functions/__fish_config_interactive.fish
index 11ad985..eec2d4c 100644
--- a/share/functions/__fish_config_interactive.fish
+++ b/share/functions/__fish_config_interactive.fish
@@ -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
--
tg: (ce5f820..) fixes/fish_greeting (depends on: upstream)