mirror of
https://github.com/envmodules/modules.git
synced 2026-06-18 00:06:53 +08:00
tcsh is now generated from csh, not tcsh.in
This commit is contained in:
30
init/tcsh.in
30
init/tcsh.in
@@ -1,30 +0,0 @@
|
||||
|
||||
if ( $?MODULE_VERSION ) then
|
||||
setenv MODULE_VERSION_STACK "$MODULE_VERSION"
|
||||
else
|
||||
setenv MODULE_VERSION "@VERSION@"
|
||||
setenv MODULE_VERSION_STACK "@VERSION@"
|
||||
endif
|
||||
set exec_prefix='@BASEPREFIX@$MODULE_VERSION'
|
||||
|
||||
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 @prefix@
|
||||
|
||||
if (! $?MODULEPATH ) then
|
||||
setenv MODULEPATH `sed 's/#.*$//' ${MODULESHOME}/init/.modulespath | awk 'NF==1{printf("%s:",$1)}'`
|
||||
endif
|
||||
|
||||
if (! $?LOADEDMODULES ) then
|
||||
setenv LOADEDMODULES
|
||||
endif
|
||||
Reference in New Issue
Block a user