set-alias alias-name alias-string
For some shells, aliases are not possible and the command has no effect. For Bourne shell derivatives, a shell function will be written (if supported) to give the impression of an alias. When a modulefile is unloaded, set-alias becomes unset-alias.
unset-alias alias-name
system string
root@centos68:/Modules/modulefiles # cat module-git
#%Module1.0#####################################################################
##
## module-cvs modulefile
##
## modulefiles/module-git. Generated from module-git.in by configure.
##
proc ModulesHelp { } {
global version
puts stderr "\tThis module will set up an alias"
puts stderr "\tfor easy anonymous check-out of this version of the"
puts stderr "\tenvironment modules package."
puts stderr "\get-modules - retrieve modules sources for this version"
puts stderr "\n\tVersion $version\n"
}
# for Tcl script use only
set version 3.2.10
set _version_ [ string map {. -} $version ]
module-whatis "get this version of the module sources from SourceForge.net"
set-alias get-modules "git clone git://git.code.sf.net/p/modules/git modules-$_version_ && cd modules-$_version_ && git checkout modules-$_version_"
if [ module-info mode load ] {
ModulesHelp
}
|
|
Switchboard | ||||
| Latest | |||||
| Past week | |||||
| Past month | |||||
Google matched content |
...