mirror of
https://github.com/envmodules/modules.git
synced 2026-06-18 00:06:53 +08:00
15 lines
328 B
Plaintext
15 lines
328 B
Plaintext
MODULESHOME=$MODULESHOME; export MODULESHOME
|
|
|
|
if [ -z $TCLSH ]; then
|
|
if [ -f /usr/bin/tclsh ]; then
|
|
set TCLSH="/usr/bin/tclsh"
|
|
elif [ -f /bin/tclsh ]; then
|
|
set TCLSH="/bin/tclsh"
|
|
else
|
|
set TCLSH=""
|
|
fi
|
|
fi
|
|
|
|
module () { eval `$TCLSH $MODULESHOME/modulecmd.tcl bash $*`; }
|
|
. $MODULESHOME/init/modulerc
|