mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-27 20:25:12 +00:00
Skip greeting on empty variable
It used to be that way and we recommend `set fish_greeting` (i.e. set to empty) in the docs - possibly since we check if the variable is defined on upgrade.
This commit is contained in:
parent
766176443d
commit
4b2495f28f
1 changed files with 3 additions and 1 deletions
|
@ -92,7 +92,9 @@ function __fish_config_interactive -d "Initializations that should be performed
|
||||||
if functions -q fish_greeting
|
if functions -q fish_greeting
|
||||||
fish_greeting
|
fish_greeting
|
||||||
else
|
else
|
||||||
set -q fish_greeting; and echo $fish_greeting
|
# The greeting used to be skipped when fish_greeting was empty (not just undefined)
|
||||||
|
# Keep it that way to not print superfluous newlines on old configuration
|
||||||
|
test -n "$fish_greeting"; and echo $fish_greeting
|
||||||
end
|
end
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue