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
|
@ -9,27 +9,27 @@ _usermod()
|
|||
# with -u/--uid
|
||||
|
||||
case $prev in
|
||||
-c|--comment|-d|--home|-e|--expiredate|-f|--inactive|-h|--help|\
|
||||
-l|--login|-p|--password|-u|--uid|-Z|--selinux-user)
|
||||
--comment|--home|--expiredate|--inactive|--help|--login|--password|\
|
||||
--uid|--selinux-user|-!(-*)[cdefhlpuZ])
|
||||
return
|
||||
;;
|
||||
-g|--gid)
|
||||
--gid|-!(-*)g)
|
||||
_gids
|
||||
COMPREPLY=( $( compgen -W '${COMPREPLY[@]} $( compgen -g )' \
|
||||
-- "$cur" ) )
|
||||
COMPREPLY=( $(compgen -W '${COMPREPLY[@]} $(compgen -g)' \
|
||||
-- "$cur") )
|
||||
return
|
||||
;;
|
||||
-G|--groups)
|
||||
--groups|-!(-*)G)
|
||||
local prefix=; [[ $cur == *,* ]] && prefix="${cur%,*},"
|
||||
COMPREPLY=( $( compgen -g -- "${cur##*,}" ) )
|
||||
COMPREPLY=( $(compgen -g -- "${cur##*,}") )
|
||||
[[ ${#COMPREPLY[@]} -eq 1 ]] && COMPREPLY=( ${COMPREPLY/#/$prefix} )
|
||||
return
|
||||
;;
|
||||
-R|--root)
|
||||
--root|-!(-*)R)
|
||||
_filedir -d
|
||||
return
|
||||
;;
|
||||
-s|--shell)
|
||||
--shell|-!(-*)s)
|
||||
_shells
|
||||
return
|
||||
;;
|
||||
|
@ -39,11 +39,11 @@ _usermod()
|
|||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
# TODO: -U/--unlock, -p/--password, -L/--lock mutually exclusive
|
||||
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
|
||||
COMPREPLY=( $(compgen -W '$(_parse_help "$1")' -- "$cur") )
|
||||
return
|
||||
fi
|
||||
|
||||
COMPREPLY=( $( compgen -u -- "$cur" ) )
|
||||
COMPREPLY=( $(compgen -u -- "$cur") )
|
||||
} &&
|
||||
complete -F _usermod usermod
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue