Only set the fish greeting variable on the very first startup

darcs-hash:20080108152708-75c98-d1aa82fbcf070b74f402a6b33e687ccf615fb104.gz
This commit is contained in:
liljencrantz 2008-01-09 01:27:08 +10:00
parent 5064cec16d
commit 286ce1d6a4

View file

@ -77,11 +77,17 @@ function __fish_config_interactive -d "Initializations that should be performed
# Print a greeting
#
#
# 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
case ''