summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xshare/spack/spack-completion.bash7
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}'
}