mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 13:53:10 +00:00
Revert "Update __fish_config_interactive.fish"
This reverts commit ec292ec51b
.
This commit is contained in:
parent
c76f896f69
commit
325f047803
1 changed files with 8 additions and 10 deletions
|
@ -110,16 +110,14 @@ function __fish_config_interactive -d "Initializations that should be performed
|
||||||
# Print a greeting.
|
# Print a greeting.
|
||||||
# fish_greeting can be a function (preferred) or a variable.
|
# fish_greeting can be a function (preferred) or a variable.
|
||||||
#
|
#
|
||||||
if status --is-interactive
|
if status --is-interactivel
|
||||||
if status --is-login
|
and status --is-login
|
||||||
if functions -q fish_greeting
|
if functions -q fish_greeting
|
||||||
fish_greeting
|
fish_greeting
|
||||||
else
|
else
|
||||||
# The greeting used to be skipped when fish_greeting was empty (not just undefined)
|
# 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
|
# Keep it that way to not print superfluous newlines on old configuration
|
||||||
test -n "$fish_greeting"
|
test -n "$fish_greeting" echo $fish_greeting
|
||||||
and echo $fish_greeting
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue