File: fish.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 (25 lines) | stat: -rw-r--r-- 518 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
#!/usr/bin/env fish
set -gx LMOD_ROOT @lmod_root@
set -gx LMOD_PKG  @PKG@
set -gx LMOD_DIR  @PKG@/libexec
set -gx LMOD_CMD  @PKG@/libexec/lmod

set -gx MODULESHOME @PKG@

set -gx LMOD_VERSION "@lmod_version@"

set -gx FPATH (@PKGV@/libexec/addto --append FPATH @PKGV@/init/ksh_funcs)

if status -i
   function module
      eval $LMOD_CMD fish $argv | source -
   end
else
   function module
      eval $LMOD_CMD fish --no_redirect $argv | source -
   end
end

function ml
   eval $LMOD_DIR/ml_cmd $argv | source -
end