fish_greeting: Add second line unconditionally

For some reason we checked __fish_initialized *after confirming* that
$fish_greeting was empty?

See #7016.
This commit is contained in:
Fabian Homborg 2020-05-23 18:54:04 +02:00
parent c2a8557c38
commit 18a4ae3fd1

View File

@ -21,10 +21,7 @@ function __fish_config_interactive -d "Initializations that should be performed
if not set -q fish_greeting
set -l line1 (_ 'Welcome to fish, the friendly interactive shell')
set -l line2 ''
if test $__fish_initialized -lt 2300
set line2 \n(_ 'Type `help` for instructions on how to use fish')
end
set -l line2 \n(_ 'Type `help` for instructions on how to use fish')
set -U fish_greeting "$line1$line2"
end