Added alias and bash completion for spacktivate (#16472)

This commit is contained in:
Ben Bergen 2020-05-13 12:02:38 -06:00 committed by GitHub
parent f294c264a1
commit 37e307e8cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 17 additions and 0 deletions

View File

@ -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.

View File

@ -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

View File

@ -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.
# #

View File

@ -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.