mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-27 20:25:12 +00:00
Only show fish greeting for interactive logins
This is a regression introduced by 834ebef53c
Bolster with a check for only login sessions too -- hopefully makes it
less annooying on subshells in general.
Fixes #3261
This commit is contained in:
parent
3d0ea5fe79
commit
3a7a6f16ef
2 changed files with 4 additions and 3 deletions
|
@ -110,7 +110,8 @@ 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 and status --is-login
|
if status --is-interactivel
|
||||||
|
and status --is-login
|
||||||
if functions -q fish_greeting
|
if functions -q fish_greeting
|
||||||
fish_greeting
|
fish_greeting
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue