mirror of
https://github.com/envmodules/modules.git
synced 2026-06-14 00:42:43 +08:00
fly, as it were. It's a powerful mechanism for dynamically changing environment variables, aliases, X11 resources, etc. It uses an embedded Tcl intrepretor, with a few extensions. Therefore, it has a well defined language syntax. Version 3.1 is GPL, and includes many improvements over the 3.0beta.
23 lines
659 B
Plaintext
23 lines
659 B
Plaintext
#%Module1.0#####################################################################
|
|
##
|
|
## dot modulefile
|
|
##
|
|
proc ModulesHelp { } {
|
|
global dotversion
|
|
|
|
puts stderr "\tAdds `.' to your PATH environment variable"
|
|
puts stderr "\n\tThis makes it easy to add the current working directory"
|
|
puts stderr "\tto your PATH environment variable. This allows you to"
|
|
puts stderr "\trun executables in your current working directory"
|
|
puts stderr "\twithout prepending ./ to the excutable name"
|
|
puts stderr "\n\tVersion $dotversion\n"
|
|
}
|
|
|
|
module-whatis "adds `.' to your PATH environment variable"
|
|
|
|
# for Tcl script use only
|
|
set dotversion @VERSION@
|
|
|
|
append-path PATH .
|
|
|