mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 03:03:57 +08:00
Update __fish_config_interactive.fish
This commit is contained in:
parent
3a7a6f16ef
commit
ec292ec51b
|
@ -110,14 +110,16 @@ function __fish_config_interactive -d "Initializations that should be performed
|
|||
# Print a greeting.
|
||||
# fish_greeting can be a function (preferred) or a variable.
|
||||
#
|
||||
if status --is-interactivel
|
||||
and status --is-login
|
||||
if functions -q fish_greeting
|
||||
fish_greeting
|
||||
else
|
||||
# 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" echo $fish_greeting
|
||||
if status --is-interactive
|
||||
if status --is-login
|
||||
if functions -q fish_greeting
|
||||
fish_greeting
|
||||
else
|
||||
# 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
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user