Add check for existance of fish_greeting variable

darcs-hash:20080112185319-75c98-3b5231b1a956c94e8800dae033f3672622104340.gz
This commit is contained in:
liljencrantz 2008-01-13 04:53:19 +10:00
parent 2aad9d5a95
commit 39c16a7770

View file

@ -146,12 +146,14 @@ function __fish_config_interactive -d "Initializations that should be performed
# Print a greeting
#
switch $fish_greeting
case ''
# If variable is empty, don't print anything, saves us a fork
if set -q fish_greeting
switch $fish_greeting
case ''
# If variable is empty, don't print anything, saves us a fork
case '*'
echo $fish_greeting
case '*'
echo $fish_greeting
end
end
#