Skip to content

Added alias and bash completion for spacktivate#16414

Closed
tuxfan wants to merge 1 commit intospack:developfrom
tuxfan:spacktivate
Closed

Added alias and bash completion for spacktivate#16414
tuxfan wants to merge 1 commit intospack:developfrom
tuxfan:spacktivate

Conversation

@tuxfan
Copy link
Copy Markdown
Contributor

@tuxfan tuxfan commented May 1, 2020

This PR adds support for a spacktivate alias with bash completion that is interpreted as spack env activate. I put it in the bash completion file because it is a first-class action, i.e., it needs to be recognized without spack, and it is always active (unlike despacktivate, which is only defined when an environment is active). If there is a better location, or implementation, I'm happy to update this PR. The csh version is a simple alias.

@junghans @tgamblin

@adamjstewart
Copy link
Copy Markdown
Member

At the top of spack-completion.bash, it says:

# NOTE: spack-completion.bash is auto-generated by:
#
#   $ spack commands --aliases --format=bash
#       --header=bash/spack-completion.in --update=spack-completion.bash
#
# Please do not manually modify this file.

You'll need to modify bash/spack-completion.in instead.

@tuxfan tuxfan closed this May 5, 2020
@tuxfan tuxfan deleted the spacktivate branch May 5, 2020 17:44
@tuxfan tuxfan restored the spacktivate branch May 5, 2020 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants