mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-14 14:03:58 +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,6 +146,7 @@ function __fish_config_interactive -d "Initializations that should be performed
|
||||||
# Print a greeting
|
# Print a greeting
|
||||||
#
|
#
|
||||||
|
|
||||||
|
if set -q fish_greeting
|
||||||
switch $fish_greeting
|
switch $fish_greeting
|
||||||
case ''
|
case ''
|
||||||
# If variable is empty, don't print anything, saves us a fork
|
# If variable is empty, don't print anything, saves us a fork
|
||||||
|
@ -153,6 +154,7 @@ function __fish_config_interactive -d "Initializations that should be performed
|
||||||
case '*'
|
case '*'
|
||||||
echo $fish_greeting
|
echo $fish_greeting
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
#
|
#
|
||||||
# Set exit message
|
# Set exit message
|
||||||
|
|
Loading…
Reference in a new issue