Add spack config list command for tab completion (#14474)

* Add spack config list command for tab completion
* Update tab completion scripts
This commit is contained in:
Adam J. Stewart
2020-01-24 19:28:20 -06:00
committed by Peter Scheibel
parent 12a261523e
commit dcd8d7a620
4 changed files with 29 additions and 8 deletions

View File

@@ -218,7 +218,7 @@ _keys() {
_config_sections() {
if [[ -z "${SPACK_CONFIG_SECTIONS:-}" ]]
then
SPACK_CONFIG_SECTIONS="compilers mirrors repos packages modules config upstreams"
SPACK_CONFIG_SECTIONS="$(spack config list)"
fi
SPACK_COMPREPLY="$SPACK_CONFIG_SECTIONS"
}