mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
Revert "Only show fish greeting for interactive logins"
This reverts commit 3a7a6f16ef
.
This commit is contained in:
parent
325f047803
commit
5eedb0ee9c
2 changed files with 3 additions and 4 deletions
|
@ -101,7 +101,7 @@ if set -q f_files[1]
|
|||
echo $file
|
||||
rm $file.new
|
||||
else
|
||||
echo (set_color --underline)$file(set_color normal) is being reformatted
|
||||
echo (set_color --underline)$file(set_color normal)is being reformatted
|
||||
mv $file.new $file
|
||||
end
|
||||
end
|
||||
|
|
|
@ -110,10 +110,9 @@ 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 status --is-interactive and status --is-login
|
||||
if functions -q fish_greeting
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue