minor cleanup of environment-modules documentation (#814)
* minor cleanup of environment-modules documentation * environment modules: update usage instructions
This commit is contained in:
parent
ef9347bcfb
commit
a0989ad672
1 changed files with 11 additions and 6 deletions
|
@ -807,17 +807,22 @@ Environment Modules, you can get it with Spack:
|
||||||
|
|
||||||
1. Install with::
|
1. Install with::
|
||||||
|
|
||||||
|
.. code-block:: sh
|
||||||
|
|
||||||
spack install environment-modules
|
spack install environment-modules
|
||||||
|
|
||||||
2. Activate with::
|
2. Activate with::
|
||||||
|
|
||||||
MODULES_HOME=`spack location -i environment-modules`
|
Add the following two lines to your ``.bashrc`` profile (or similar):
|
||||||
MODULES_VERSION=`ls -1 $MODULES_HOME/Modules | head -1`
|
|
||||||
${MODULES_HOME}/Modules/${MODULES_VERSION}/bin/add.modules
|
.. code-block:: sh
|
||||||
|
|
||||||
|
MODULES_HOME=`spack location -i environment-modules`
|
||||||
|
source ${MODULES_HOME}/Modules/init/bash
|
||||||
|
|
||||||
|
In case you use a Unix shell other than bash, substitute ``bash`` by
|
||||||
|
the appropriate file in ``${MODULES_HOME}/Modules/init/``.
|
||||||
|
|
||||||
This adds to your ``.bashrc`` (or similar) files, enabling Environment
|
|
||||||
Modules when you log in. It will ask your permission before changing
|
|
||||||
any files.
|
|
||||||
|
|
||||||
Spack and Environment Modules
|
Spack and Environment Modules
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
Loading…
Reference in a new issue