mirror of
https://github.com/Gator96100/ProxSpace.git
synced 2025-08-14 02:27:03 -07:00
Updated msys2 to msys2-base-x86_64-20200903
This commit is contained in:
parent
5bc8dbdc75
commit
2307d54cb1
18501 changed files with 1684082 additions and 720361 deletions
|
@ -23,22 +23,22 @@
|
|||
|
||||
_module_list ()
|
||||
{
|
||||
local modules="$( command sed 's/:/ /g' <<<$LOADEDMODULES | sort )"
|
||||
local modules="$(command sed 's/:/ /g' <<<$LOADEDMODULES | sort)"
|
||||
compgen -W "$modules" -- $1
|
||||
}
|
||||
|
||||
_module_path ()
|
||||
{
|
||||
local modules="$( command sed 's/:/ /g' <<<$MODULEPATH | sort )"
|
||||
local modules="$(command sed 's/:/ /g' <<<$MODULEPATH | sort)"
|
||||
compgen -W "$modules" -- $1
|
||||
}
|
||||
|
||||
_module_avail ()
|
||||
{
|
||||
local modules="$( \
|
||||
local modules="$(\
|
||||
module avail 2>&1 | \
|
||||
command grep -E -v '^(-|$)' | \
|
||||
xargs printf '%s\n' | command sed -e 's/(default)//g' | sort )"
|
||||
xargs printf '%s\n' | command sed -e 's/(default)//g' | sort)"
|
||||
|
||||
compgen -W "$modules" -- $1
|
||||
}
|
||||
|
@ -53,8 +53,8 @@ _module ()
|
|||
# First parameter on line -- we expect it to be a mode selection
|
||||
|
||||
local options
|
||||
options="$( module help 2>&1 | command grep -E '^[[:space:]]*\+' | \
|
||||
awk '{print $2}' | command sed -e 's/|/ /g' | sort )"
|
||||
options="$(module help 2>&1 | command grep -E '^[[:space:]]*\+' | \
|
||||
awk '{print $2}' | command sed -e 's/|/ /g' | sort)"
|
||||
|
||||
COMPREPLY=( $(compgen -W "$options" -- "$cur") )
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue