File: rc.in

package info (click to toggle)
lmod 8.7.60-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 63,008 kB
  • sloc: sh: 6,266; makefile: 2,837; ansic: 1,513; tcl: 1,382; python: 1,050; csh: 112
file content (31 lines) | stat: -rw-r--r-- 716 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/env rc

#LMOD_ROOT='@lmod_root@'
LMOD_PKG='@PKG@'
LMOD_DIR='@PKG@/libexec'
LMOD_CMD='@PKG@/libexec/lmod'
MODULESHOME='@PKG@'

fn module {
  eval `{$LMOD_CMD rc $*}
}

fn clearMT {
  eval `{$LMOD_DIR/clearMT_cmd rc}
}

########################################################################
#  ml is a shorthand tool for people who can't type moduel, err, module
#  It is also a combination command:
#     ml            -> module list
#     ml gcc        -> module load gcc
#     ml -gcc intel -> module unload gcc; module load intel
#  It does much more do: "ml --help" for more information.
fn ml {
  eval `{$LMOD_DIR/ml_cmd $*}
}

# Local Variables:
# mode: shell-script
# indent-tabs-mode: nil
# End: