File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -93,14 +93,20 @@ command:
9393.. literalinclude :: outputs/environments/env-activate-1.out
9494 :language: console
9595
96-
97- You can also use the ``spacktivate `` alias for short.
98-
9996.. note ::
10097 If you use the ``-p `` option for ``spack env activate ``, Spack
10198 will prepend the environment name to the prompt. This is a handy
10299 way to be reminded if and which environment you are in.
103100
101+ You can also use the shorter ``spacktivate `` alias for ``spack env activate ``.
102+
103+ .. note ::
104+ Alias behavior may vary depending on the shell interpreter used. In Bash,
105+ use of aliases requires the shell option ``expand_aliases `` to be set.
106+ This option is set by default, but it is not set in non-interactive shells,
107+ e.g., when executing a Bash script. In a Bash script, ``expand_aliases ``
108+ can be set with the command ``shopt -s expand_aliases ``.
109+
104110
105111Once you activate an environment, ``spack find `` only shows what is
106112in the current environment. We just created this environment, so it
You can’t perform that action at this time.
0 commit comments