mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 21:33:09 +00:00
Do not print greeting with empty $fish_greeting and --private
Fixes #6299 [ci skip]
This commit is contained in:
parent
5c3e43bc0c
commit
0e4a75c0b5
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ function __fish_config_interactive -d "Initializations that should be performed
|
|||
set -U fish_greeting "$line1$line2"
|
||||
end
|
||||
|
||||
if set -q fish_private_mode
|
||||
if set -q fish_private_mode and string length -q -- $fish_greeting
|
||||
set -l line (_ "fish is running in private mode, history will not be persisted.")
|
||||
set -g fish_greeting $fish_greeting.\n$line
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue