Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions tutorial_environments.rst
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,20 @@ command:
.. literalinclude:: outputs/environments/env-activate-1.out
:language: console


You can also use the ``spacktivate`` alias for short.

.. note::
If you use the ``-p`` option for ``spack env activate``, Spack
will prepend the environment name to the prompt. This is a handy
way to be reminded if and which environment you are in.

You can also use the shorter ``spacktivate`` alias for ``spack env activate``.

.. note::
Alias behavior may vary depending on the shell interpreter used. In Bash,
use of aliases requires the shell option ``expand_aliases`` to be set.
This option is set by default, but it is not set in non-interactive shells,
e.g., when executing a Bash script. In a Bash script, ``expand_aliases``
can be set with the command ``shopt -s expand_aliases``.


Once you activate an environment, ``spack find`` only shows what is
in the current environment. We just created this environment, so it
Expand Down