Skip to content
Snippets Groups Projects
Unverified Commit 37e307e8 authored by Ben Bergen's avatar Ben Bergen Committed by GitHub
Browse files

Added alias and bash completion for spacktivate (#16472)

parent f294c264
No related branches found
No related tags found
No related merge requests found
...@@ -304,6 +304,13 @@ _pretty_print() { ...@@ -304,6 +304,13 @@ _pretty_print() {
complete -o bashdefault -o default -F _bash_completion_spack spack complete -o bashdefault -o default -F _bash_completion_spack spack
# Completion for spacktivate
complete -o bashdefault -o default -F _bash_completion_spack spacktivate
_spacktivate() {
_spack_env_activate
}
# Spack commands # Spack commands
# #
# Everything below here is auto-generated. # Everything below here is auto-generated.
...@@ -18,6 +18,7 @@ if ($?SPACK_ROOT) then ...@@ -18,6 +18,7 @@ if ($?SPACK_ROOT) then
# Command aliases point at separate source files # Command aliases point at separate source files
alias spack 'set _sp_args = (\!*); source $_spack_share_dir/csh/spack.csh' alias spack 'set _sp_args = (\!*); source $_spack_share_dir/csh/spack.csh'
alias spacktivate 'spack env activate'
alias _spack_pathadd 'set _pa_args = (\!*) && source $_spack_share_dir/csh/pathadd.csh' alias _spack_pathadd 'set _pa_args = (\!*) && source $_spack_share_dir/csh/pathadd.csh'
# Set variables needed by this script # Set variables needed by this script
......
...@@ -242,6 +242,8 @@ if [ "$_sp_shell" = bash ]; then ...@@ -242,6 +242,8 @@ if [ "$_sp_shell" = bash ]; then
export -f spack export -f spack
fi fi
alias spacktivate="spack env activate"
# #
# Figure out where this file is. # Figure out where this file is.
# #
......
...@@ -304,6 +304,13 @@ _pretty_print() { ...@@ -304,6 +304,13 @@ _pretty_print() {
complete -o bashdefault -o default -F _bash_completion_spack spack complete -o bashdefault -o default -F _bash_completion_spack spack
# Completion for spacktivate
complete -o bashdefault -o default -F _bash_completion_spack spacktivate
_spacktivate() {
_spack_env_activate
}
# Spack commands # Spack commands
# #
# Everything below here is auto-generated. # Everything below here is auto-generated.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment