Skip to content

Commit 3c16faf

Browse files
committed
doc: add module cmd enabling guidelines for Csh
Signed-off-by: Xavier Delaruelle <[email protected]>
1 parent c6fca7f commit 3c16faf

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

.hunspell.en.dic

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1222,3 +1222,5 @@ LMUSE
12221222
EESSI
12231223
shopt
12241224
fi
1225+
loginsh
1226+
endif

INSTALL.rst

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,15 +185,29 @@ running a script. Add the following code snippets to the initialization files
185185
of the shell you use.
186186

187187
* For **Bash**, update either system-wide (``/etc/bash.bashrc`` on Debian-like
188-
systems) or personal (``~/.bashrc``) initialization file
188+
systems) or personal (``~/.bashrc``) initialization file:
189189

190190
.. code-block:: sh
191191
192-
# enable module command in non-interactive shells
192+
# enable module command in non-login shells
193193
if ! shopt -q login_shell; then
194194
. /usr/share/modules/init/bash
195195
fi
196196
197+
* For **Csh**/**Tcsh**, add Modules initialization file into Csh rc directory
198+
(``/etc/csh/cshrc.d`` on Debian-like systems)::
199+
200+
ln -s /usr/share/modules/init/csh /etc/csh/cshrc.d/modules
201+
202+
Or update personal (``~/.cshrc``) initialization file:
203+
204+
.. code-block:: csh
205+
206+
# enable module command in non-login shells
207+
if (! $?loginsh) then
208+
source /usr/share/modules/init/csh
209+
endif
210+
197211
Configuration
198212
-------------
199213

0 commit comments

Comments
 (0)