setup-env.fish: fix version checking for completions (#48806)
This commit is contained in:
parent
b7a5e9ca03
commit
a0f8aaf4e7
@ -788,8 +788,7 @@ end
|
|||||||
#
|
#
|
||||||
set -l fish_version (string split '.' $FISH_VERSION)
|
set -l fish_version (string split '.' $FISH_VERSION)
|
||||||
if test $fish_version[1] -gt 3
|
if test $fish_version[1] -gt 3
|
||||||
or test $fish_version[1] -eq 3
|
or begin ; test $fish_version[1] -eq 3 and test $fish_version[2] -ge 2 ; end
|
||||||
and test $fish_version[2] -ge 2
|
|
||||||
|
|
||||||
source $sp_share_dir/spack-completion.fish
|
source $sp_share_dir/spack-completion.fish
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user