module() { eval `/usr/bin/modulecmd bash $*`; } export -f module MODULESHOME=/usr/share/Modules export MODULESHOME if [ "${LOADEDMODULES:-}" = "" ]; then LOADEDMODULES= export LOADEDMODULES fi if [ "${MODULEPATH:-}" = "" ]; then MODULEPATH=`sed -n 's/[ #].*$//; /./H; $ { x; s/^\n//; s/\n/:/g; p; }' ${MODULESHOME}/init/.modulespath` export MODULEPATH fi if [ ${BASH_VERSINFO:-0} -ge 3 ] && [ -r ${MODULESHOME}/init/bash_completion ]; then . ${MODULESHOME}/init/bash_completion fi