Add "spack cd" shell support to cd directly into the staged archive.

This commit is contained in:
Todd Gamblin 2014-07-25 19:39:10 -07:00
parent 5a3803de39
commit abc7d401e2

View file

@ -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") ;;
*) *)