Add "spack cd" shell support to cd directly into the staged archive.
This commit is contained in:
parent
5a3803de39
commit
abc7d401e2
1 changed files with 4 additions and 0 deletions
|
@ -65,6 +65,10 @@ function spack {
|
||||||
# Filter out use and unuse. For any other commands, just run the
|
# Filter out use and unuse. For any other commands, just run the
|
||||||
# command.
|
# command.
|
||||||
case $_spack_subcommand in
|
case $_spack_subcommand in
|
||||||
|
"cd")
|
||||||
|
cd $(spack stage -b "$@")
|
||||||
|
return
|
||||||
|
;;
|
||||||
"use") ;;
|
"use") ;;
|
||||||
"unuse") ;;
|
"unuse") ;;
|
||||||
*)
|
*)
|
||||||
|
|
Loading…
Reference in a new issue