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
|
@ -8,10 +8,10 @@ _getent()
|
|||
local i db
|
||||
for (( i=1; i < cword; i++ )); do
|
||||
case ${words[i]} in
|
||||
-V|--version|--usage|-'?'|--help)
|
||||
--version|--usage|--help|-!(-*)[V?])
|
||||
return
|
||||
;;
|
||||
-s|--service)
|
||||
--service|-!(-*)s)
|
||||
(( i++ ))
|
||||
;;
|
||||
-*)
|
||||
|
@ -26,29 +26,28 @@ _getent()
|
|||
|
||||
case $db in
|
||||
passwd)
|
||||
COMPREPLY=( $( compgen -u -- "$cur" ) )
|
||||
COMPREPLY=( $(compgen -u -- "$cur") )
|
||||
return
|
||||
;;
|
||||
group)
|
||||
COMPREPLY=( $( compgen -g -- "$cur" ) )
|
||||
COMPREPLY=( $(compgen -g -- "$cur") )
|
||||
return
|
||||
;;
|
||||
services)
|
||||
COMPREPLY=( $( compgen -s -- "$cur" ) )
|
||||
COMPREPLY=( $(compgen -s -- "$cur") )
|
||||
return
|
||||
;;
|
||||
hosts)
|
||||
COMPREPLY=( $( compgen -A hostname -- "$cur" ) )
|
||||
COMPREPLY=( $(compgen -A hostname -- "$cur") )
|
||||
return
|
||||
;;
|
||||
protocols|networks|ahosts|ahostsv4|ahostsv6|rpc)
|
||||
COMPREPLY=( $( compgen -W "$( $1 $db | \
|
||||
awk '{ print $1 }' )" -- "$cur" ) )
|
||||
COMPREPLY=( $(compgen -W "$($1 $db | \
|
||||
awk '{ print $1 }')" -- "$cur") )
|
||||
return
|
||||
;;
|
||||
aliases|shadow|gshadow)
|
||||
COMPREPLY=( $( compgen -W "$( $1 $db | cut -d: -f1 )" \
|
||||
-- "$cur" ) )
|
||||
COMPREPLY=( $(compgen -W "$($1 $db | cut -d: -f1)" -- "$cur") )
|
||||
return
|
||||
;;
|
||||
ethers|netgroup)
|
||||
|
@ -65,12 +64,12 @@ _getent()
|
|||
$split && return
|
||||
|
||||
if [[ $cur == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
|
||||
COMPREPLY=( $(compgen -W '$(_parse_help "$1")' -- "$cur") )
|
||||
[[ $COMPREPLY == *= ]] && compopt -o nospace
|
||||
elif [[ -z $db ]]; then
|
||||
COMPREPLY=( $( compgen -W 'passwd group hosts services protocols
|
||||
COMPREPLY=( $(compgen -W 'passwd group hosts services protocols
|
||||
networks ahosts ahostsv4 ahostsv6 aliases ethers netgroup rpc
|
||||
shadow gshadow' -- "$cur" ) )
|
||||
shadow gshadow' -- "$cur") )
|
||||
fi
|
||||
} &&
|
||||
complete -F _getent getent
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue