This file is indexed.

/usr/share/modules/init/fish is in environment-modules 4.1.1-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# define modules runtine quarantine configuration
#set -xg MODULES_RUN_QUARANTINE 'ENVVARNAME'

# setup quarantine if defined
set _mlre '';
for _mlv in (string split ' ' $MODULES_RUN_QUARANTINE)
  if string match -r '^[A-Za-z_][A-Za-z0-9_]*$' $_mlv >/dev/null
     if set -q $_mlv
        set _mlre $_mlre$_mlv"_modquar='$$_mlv' "
     end
     set _mlrv "MODULES_RUNENV_$_mlv"
     set _mlre "$_mlre$_mlv='$$_mlrv' "
  end
end
if [ -n "$_mlre" ]
  set _mlre "env $_mlre"
end

# define module command and surrounding initial environment (default value
# for MODULESHOME, MODULEPATH, LOADEDMODULES and parse of init/.modulespath)
eval $_mlre /usr/bin/tclsh /usr/lib/x86_64-linux-gnu/modulecmd.tcl fish autoinit | source -

# clean temp variables used to setup quarantine
set -e _mlre; set -e _mlv; set -e _mlrv;

if status -i
   if [ -r /usr/share/modules/init/fish_completion ]
      source /usr/share/modules/init/fish_completion
   end
end

# no switchml definition since there is no Fish support in C version

# setup ENV variables to get module defined in sub-shells (works for 'sh'
# and 'ksh' in interactive mode and 'sh' (zsh-compat), 'bash' and 'ksh'
# (zsh-compat) in non-interactive mode.
set -xg ENV /usr/share/modules/init/profile.sh
set -xg BASH_ENV /usr/share/modules/init/bash

if not contains /usr/bin $PATH
   set -xg PATH /usr/bin $PATH
end

set manpath (manpath ^/dev/null)
if not string match -q '*:/usr/share/man:*' :$manpath:
   if [ -z $manpath ]
      set -xg MANPATH /usr/share/man
   else
      set -xg MANPATH /usr/share/man:$manpath
   end
end