
if ( $?MODULE_VERSION ) then
	setenv MODULE_VERSION_STACK 	"$MODULE_VERSION"
else
	setenv MODULE_VERSION 		"3.1.6"
	setenv MODULE_VERSION_STACK 	"3.1.6"
endif
set exec_prefix='/opt/Modules/'

if ( $?histchars ) then
  set histchar = `echo $histchars | cut -c1`
  set _histchars = $histchars
  alias module 'unset histchars; \\
eval `'$exec_prefix'/bin/modulecmd tcsh '$histchar'*`; \\
set histchars = $_histchars'
  unset histchar
else
  alias module 'eval `'$exec_prefix'/bin/modulecmd tcsh \!*`'
endif
unset exec_prefix

setenv MODULESHOME /opt/Modules/

if (! $?MODULEPATH ) then
  setenv MODULEPATH `sed 's/#.*$//' ${MODULESHOME}/init/.modulespath | awk 'NF==1{printf("%s:",$1)}'`
endif

if (! $?LOADEDMODULES ) then
  setenv LOADEDMODULES
endif
