fish (1.23.1-2) fixes/fish_greeting.diff


 share/functions/ |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

download this patch

Patch contents

From: James Vega <>
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 <>

 share/functions/ |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/share/functions/ b/share/functions/
index 11ad985..eec2d4c 100644
--- a/share/functions/
+++ b/share/functions/
@@ -150,7 +150,7 @@ function __fish_config_interactive -d "Initializations that should be performed
 		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)