Skip to content

Commit 4c18896

Browse files
enable autocompletion for spack-stack extensions (#1825)
1 parent 069bad4 commit 4c18896

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

setup.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ echo "Setting environment variable SPACK_STACK_DIR to ${SPACK_STACK_DIR}"
1616
export SPACK_DISABLE_LOCAL_CONFIG=true
1717
export SPACK_USER_CACHE_PATH=${SPACK_STACK_DIR}/cache/user_cache
1818

19+
echo "Enabling shell completions for spack-stack extensions..."
20+
${SPACK_STACK_DIR}/spack/bin/spack commands --update-completion
1921
source ${SPACK_STACK_DIR}/spack/share/spack/setup-env.sh
2022
echo "Sourcing spack environment ${SPACK_STACK_DIR}/spack/share/spack/setup-env.sh"
2123

0 commit comments

Comments
 (0)