mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-04-27 23:11:15 -03:00
Remove a few calls to the test command in favour of the switch builtin to speed statup up
darcs-hash:20070922190734-75c98-0e63a0ed6685edc2c9aa941f0b26c14466c7af6a.gz
This commit is contained in:
@@ -83,7 +83,11 @@ function __fish_config_interactive -d "Initializations that should be performed
|
||||
set -U fish_greeting $line1\n$line2
|
||||
end
|
||||
|
||||
if test "$fish_greeting"
|
||||
switch $fish_greeting
|
||||
case ''
|
||||
# If variable is empty, don't print anything, saves us a fork
|
||||
|
||||
case '*'
|
||||
echo $fish_greeting
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user