mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
Only set the fish greeting variable on the very first startup
darcs-hash:20080108152708-75c98-d1aa82fbcf070b74f402a6b33e687ccf615fb104.gz
This commit is contained in:
parent
5064cec16d
commit
286ce1d6a4
1 changed files with 10 additions and 4 deletions
|
@ -77,10 +77,16 @@ function __fish_config_interactive -d "Initializations that should be performed
|
|||
# Print a greeting
|
||||
#
|
||||
|
||||
if not set -q fish_greeting
|
||||
set -l line1 (printf (_ 'Welcome to fish, the friendly interactive shell') )
|
||||
set -l line2 (printf (_ 'Type %shelp%s for instructions on how to use fish') (set_color green) (set_color normal))
|
||||
set -U fish_greeting $line1\n$line2
|
||||
#
|
||||
# If we are starting up for the first time, set the default greeting
|
||||
#
|
||||
if not set -q __fish_init_1_23_0
|
||||
if not set -q fish_greeting
|
||||
set -l line1 (printf (_ 'Welcome to fish, the friendly interactive shell') )
|
||||
set -l line2 (printf (_ 'Type %shelp%s for instructions on how to use fish') (set_color green) (set_color normal))
|
||||
set -U fish_greeting $line1\n$line2
|
||||
end
|
||||
set -U __fish_init_1_23_0
|
||||
end
|
||||
|
||||
switch $fish_greeting
|
||||
|
|
Loading…
Reference in a new issue