mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 01:37:25 +08:00
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:
parent
c2a8557c38
commit
18a4ae3fd1
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user