mirror of
https://github.com/Gator96100/ProxSpace.git
synced 2025-08-20 05:13:25 -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
|
@ -6,24 +6,23 @@ _sysctl()
|
|||
_init_completion || return
|
||||
|
||||
case $prev in
|
||||
--help|--version)
|
||||
--help|--version|--pattern|-!(-*)[hVr])
|
||||
return
|
||||
;;
|
||||
-p)
|
||||
--load|-!(-*)[pf])
|
||||
_filedir conf
|
||||
return
|
||||
;;
|
||||
esac
|
||||
|
||||
if [[ $cur == -* ]]; then
|
||||
local opts="$( _parse_help "$1" )"
|
||||
[[ $opts ]] || opts="$( _parse_usage "$1" )"
|
||||
COMPREPLY=( $( compgen -W "$opts" -- "$cur" ) )
|
||||
local opts="$(_parse_help "$1")"
|
||||
COMPREPLY=( $(compgen -W '${opts:-$(_parse_usage "$1")}' -- "$cur") )
|
||||
else
|
||||
local suffix=
|
||||
[[ $prev == -w ]] && suffix==
|
||||
COMPREPLY=( $( compgen -S "$suffix" -W \
|
||||
"$( PATH="$PATH:/sbin" sysctl -N -a 2>/dev/null )" -- "$cur" ) )
|
||||
[[ $prev == -w ]] && suffix="="
|
||||
COMPREPLY=( $(compgen -S "$suffix" -W \
|
||||
"$(PATH="$PATH:/sbin" $1 -N -a 2>/dev/null)" -- "$cur") )
|
||||
[[ $COMPREPLY == *= ]] && compopt -o nospace
|
||||
fi
|
||||
} &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue