summaryrefslogtreecommitdiff
path: root/completions/useradd
diff options
context:
space:
mode:
Diffstat (limited to 'completions/useradd')
-rw-r--r--completions/useradd18
1 files changed, 8 insertions, 10 deletions
diff --git a/completions/useradd b/completions/useradd
index 12c29365..9ed2f9f6 100644
--- a/completions/useradd
+++ b/completions/useradd
@@ -11,36 +11,34 @@ _useradd()
case $prev in
-c|--comment|-h|--help|-e|--expiredate|-f|--inactive|-K|--key|\
-p|--password|-u|--uid|-Z|--selinux-user)
- return 0
+ return
;;
-b|--base-dir|-d|--home-dir|-k|--skel|-R|--root)
_filedir -d
- 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
;;
-s|--shell)
_shells
- return 0
+ return
;;
esac
- $split && return 0
+ $split && return
- if [[ "$cur" == -* ]]; then
+ [[ "$cur" == -* ]] && \
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
- return 0
- fi
} &&
complete -F _useradd useradd
-# ex: ts=4 sw=4 et filetype=sh
+# ex: filetype=sh