File tree Expand file tree Collapse file tree 6 files changed +7
-4
lines changed
Expand file tree Collapse file tree 6 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -1139,3 +1139,4 @@ othervariant
11391139bitwise
11401140modpath
11411141indesym
1142+ syms
Original file line number Diff line number Diff line change @@ -37,6 +37,8 @@ Modules 5.3.1 (not yet released)
3737 :mconfig: `avail_output ` and :mconfig: `avail_terse_output ` configuration
3838 options. When set, symbolic versions are reported as independent elements
3939 rather along the module or directory they are attached to.
40+ * Init: fix completion scripts to report module symbolic versions and aliases
41+ among available modules. (fix issue #500)
4042
4143.. _Hunspell : https://hunspell.github.io/
4244
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ _module_avail() {
2020 local cur="${1:-}"
2121 # skip avail call if word currently being completed is an option keyword
2222 if [ -z "$cur" ] || [ "${cur:0:1}" != '-' ]; then
23- module avail --color=never -s -t -S --no-indepth -o '' "$cur" 2>&1
23+ module avail --color=never -s -t -S --no-indepth -o 'alias:indesym ' "$cur" 2>&1
2424 fi
2525}
2626
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ function __fish_module_use_config --description 'Test if module command should h
6363 return 1
6464end
6565
66- complete -c module -n '__fish_module_use_avail' -f -a "(module avail --color=never -s -t -S --no-indepth -o '' (commandline -ct) 2>&1)"
66+ complete -c module -n '__fish_module_use_avail' -f -a "(module avail --color=never -s -t -S --no-indepth -o 'alias:indesym ' (commandline -ct) 2>&1)"
6767complete -c module -n '__fish_module_use_list' -f -a "(module list --color=never -s -t -o '' 2>&1)"
6868complete -c module -n '__fish_module_use_initlist' -f -a "(module initlist --color=never -s 2>&1 | sed '\
6969 / loads modules:\$/d;')"
Original file line number Diff line number Diff line change 33#
44
55alias _module_avail '\\
6- @TCLSH@ "@libexecdir@/modulecmd.tcl" tcsh avail --color=never -s -t -S -o "" |& cat'
6+ @TCLSH@ "@libexecdir@/modulecmd.tcl" tcsh avail --color=never -s -t -S -o "alias:indesym " |& cat'
77
88alias _module_loaded '\\
99 @TCLSH@ "@libexecdir@/modulecmd.tcl" tcsh list --color=never -s -t -o "" |& cat'
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ _module_avail() {
99 local cur="${1:-}";
1010 # skip avail call if word currently being completed is an option keyword
1111 if [ -z "$cur" -o "${cur:0:1}" != '-' ]; then
12- module avail --color=never -s -t -S --no-indepth -o '' $cur 2>&1
12+ module avail --color=never -s -t -S --no-indepth -o 'alias:indesym ' $cur 2>&1
1313 fi
1414}
1515
You can’t perform that action at this time.
0 commit comments