Add "spack [cd|location] --source-dir" (#22321)

This commit is contained in:
Harmen Stoppels
2021-03-29 17:31:24 +02:00
committed by GitHub
parent 3d7069e039
commit 8b16728fd9
3 changed files with 74 additions and 50 deletions

View File

@@ -453,7 +453,7 @@ _spack_buildcache_update_index() {
_spack_cd() {
if $list_options
then
SPACK_COMPREPLY="-h --help -m --module-dir -r --spack-root -i --install-dir -p --package-dir -P --packages -s --stage-dir -S --stages -b --build-dir -e --env"
SPACK_COMPREPLY="-h --help -m --module-dir -r --spack-root -i --install-dir -p --package-dir -P --packages -s --stage-dir -S --stages --source-dir -b --build-dir -e --env"
else
_all_packages
fi
@@ -1089,7 +1089,7 @@ _spack_load() {
_spack_location() {
if $list_options
then
SPACK_COMPREPLY="-h --help -m --module-dir -r --spack-root -i --install-dir -p --package-dir -P --packages -s --stage-dir -S --stages -b --build-dir -e --env"
SPACK_COMPREPLY="-h --help -m --module-dir -r --spack-root -i --install-dir -p --package-dir -P --packages -s --stage-dir -S --stages --source-dir -b --build-dir -e --env"
else
_all_packages
fi