diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2018-04-17 09:33:04 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-17 09:33:04 -0500 |
commit | ef37cdb380743c68c95029d2173de948c94e2be3 (patch) | |
tree | b34d16b3253ec2e7691b23559d23da3b73cda667 /share | |
parent | ed4d0c5a87a9bcb51f65790169f088926791ddc5 (diff) | |
download | spack-ef37cdb380743c68c95029d2173de948c94e2be3.tar.gz spack-ef37cdb380743c68c95029d2173de948c94e2be3.tar.bz2 spack-ef37cdb380743c68c95029d2173de948c94e2be3.tar.xz spack-ef37cdb380743c68c95029d2173de948c94e2be3.zip |
Autocomplete spack providers (#7783)
Diffstat (limited to 'share')
-rwxr-xr-x | share/spack/spack-completion.bash | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/share/spack/spack-completion.bash b/share/spack/spack-completion.bash index 4bb00b33c6..e562248d9d 100755 --- a/share/spack/spack-completion.bash +++ b/share/spack/spack-completion.bash @@ -754,8 +754,7 @@ function _spack_providers { then compgen -W "-h --help" -- "$cur" else - compgen -W "awk blas D daal elf gl golang ipp java lapack mkl mpe mpi - opencl openfoam pil pkgconfig scalapack szip tbb" -- "$cur" + compgen -W "$(_providers)" -- "$cur" fi } @@ -1025,6 +1024,10 @@ function _installed_compilers { spack compilers | egrep -v "^(-|=)" } +function _providers { + spack providers +} + function _mirrors { spack mirror list | awk '{print $1}' } |