setup-env.fish: fix version checking for completions (#48806)

This commit is contained in:
Pranav Sivaraman 2025-02-23 15:28:51 -05:00 committed by GitHub
parent b7a5e9ca03
commit a0f8aaf4e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -788,8 +788,7 @@ end
#
set -l fish_version (string split '.' $FISH_VERSION)
if test $fish_version[1] -gt 3
or test $fish_version[1] -eq 3
and test $fish_version[2] -ge 2
or begin ; test $fish_version[1] -eq 3 and test $fish_version[2] -ge 2 ; end
source $sp_share_dir/spack-completion.fish
end