diff options
-rwxr-xr-x | share/spack/setup-env.bash | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/share/spack/setup-env.bash b/share/spack/setup-env.bash index e22a259167..53c53dfee5 100755 --- a/share/spack/setup-env.bash +++ b/share/spack/setup-env.bash @@ -65,6 +65,10 @@ function spack { # Filter out use and unuse. For any other commands, just run the # command. case $_spack_subcommand in + "cd") + cd $(spack stage -b "$@") + return + ;; "use") ;; "unuse") ;; *) |