summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2018-04-17 09:33:04 -0500
committerGitHub <noreply@github.com>2018-04-17 09:33:04 -0500
commitef37cdb380743c68c95029d2173de948c94e2be3 (patch)
treeb34d16b3253ec2e7691b23559d23da3b73cda667 /share
parented4d0c5a87a9bcb51f65790169f088926791ddc5 (diff)
downloadspack-ef37cdb380743c68c95029d2173de948c94e2be3.tar.gz
spack-ef37cdb380743c68c95029d2173de948c94e2be3.tar.bz2
spack-ef37cdb380743c68c95029d2173de948c94e2be3.tar.xz
spack-ef37cdb380743c68c95029d2173de948c94e2be3.zip
Autocomplete spack providers (#7783)
Diffstat (limited to 'share')
-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}'
}