mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 10:00:43 +08:00
Add check for existance of fish_greeting variable
darcs-hash:20080112185319-75c98-3b5231b1a956c94e8800dae033f3672622104340.gz
This commit is contained in:
parent
2aad9d5a95
commit
39c16a7770
|
@ -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
|
||||
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue
Block a user