mirror of
https://github.com/envmodules/modules.git
synced 2026-06-07 00:25:05 +08:00
Add a cookbook section in the documentation and port there the 3 pre-existing recipes: inhibit-report-info, top-priority-values and unload-firstly-loaded. Move the examples files of these recipes from contrib/cookbook to doc/example directory.
10 lines
364 B
Plaintext
10 lines
364 B
Plaintext
#%Module
|
|
# define a value for variable holding top priority (not overwritten by non-top priority value)
|
|
setenv --top TESTVAR topvalue
|
|
|
|
# prepend a value to a path-like variable, value that stays first position
|
|
prepend-path --top TESTPATH topprevalue
|
|
|
|
# append a value to a path-like variable, value that stays last position
|
|
append-path --top TESTPATH toppostvalue
|