File tree Expand file tree Collapse file tree 2 files changed +18
-2
lines changed
Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -1222,3 +1222,5 @@ LMUSE
12221222EESSI
12231223shopt
12241224fi
1225+ loginsh
1226+ endif
Original file line number Diff line number Diff line change @@ -185,15 +185,29 @@ running a script. Add the following code snippets to the initialization files
185185of 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
You can’t perform that action at this time.
0 commit comments