diff options
Diffstat (limited to 'completions/usermod')
-rw-r--r-- | completions/usermod | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/completions/usermod b/completions/usermod index 0d1f497b..03cc89fe 100644 --- a/completions/usermod +++ b/completions/usermod @@ -11,39 +11,39 @@ _usermod() case $prev in -c|--comment|-d|--home|-e|--expiredate|-f|--inactive|-h|--help|\ -l|--login|-p|--password|-u|--uid|-Z|--selinux-user) - return 0 + return ;; -g|--gid) _gids COMPREPLY=( $( compgen -W '${COMPREPLY[@]} $( compgen -g )' \ -- "$cur" ) ) - return 0 + return ;; -G|--groups) local prefix=; [[ $cur == *,* ]] && prefix="${cur%,*}," COMPREPLY=( $( compgen -P "$prefix" -g -- "${cur##*,}" ) ) - return 0 + return ;; -R|--root) _filedir -d - return 0 + return ;; -s|--shell) _shells - return 0 + return ;; esac - $split && return 0 + $split && return if [[ "$cur" == -* ]]; then # TODO: -U/--unlock, -p/--password, -L/--lock mutually exclusive COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) ) - return 0 + return fi COMPREPLY=( $( compgen -u -- "$cur" ) ) } && complete -F _usermod usermod -# ex: ts=4 sw=4 et filetype=sh +# ex: filetype=sh |