mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
Add check for existance of fish_greeting variable
darcs-hash:20080112185319-75c98-3b5231b1a956c94e8800dae033f3672622104340.gz
This commit is contained in:
parent
2aad9d5a95
commit
39c16a7770
1 changed files with 7 additions and 5 deletions
|
@ -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 a new issue