nrpe: update to 4.1.3
[oi-userland.git] / components / sysutils / environment-modules / files / modules.sh
blobb822f2f2c75ebd5ba12da5ad8fdd2e4cffb0d276
2 # Initialization of environment modules for ksh/bash shells.
5 MODULEHOME=/usr/lib/Modules/latest
7 case "$0" in
8 -sh)
9 . ${MODULEHOME}/init/sh
11 -ksh | -ksh93 | -jsh)
12 . ${MODULEHOME}/init/ksh
14 -zsh)
15 . ${MODULEHOME}/init/zsh
17 -bash)
18 . ${MODULEHOME}/init/bash
21 . ${MODULEHOME}/init/sh
23 esac
25 # Allow adding modules list in .modules
26 if [ -r $HOME/.modules ]; then
27 . $HOME/.modules
30 # Prepend user module path automatically
31 if [ -d $HOME/modules ]; then
32 MODULEPATH=$HOME/modules:$MODULEPATH
33 export MODULEPATH