1
# useradd(8) completion -*- shell-script -*-
5
local cur prev words cword split
6
_init_completion -s || return
8
# TODO: if -o/--non-unique is given, could complete on existing uids
12
-c|--comment|-h|--help|-e|--expiredate|-f|--inactive|-k|--key|\
13
-p|--password|-u|--uid|-Z|--selinux-user)
16
-b|--base-dir|-d|--home|-k|--skel)
22
COMPREPLY=( $( compgen -W '${COMPREPLY[@]} $( compgen -g )' \
27
COMPREPLY=( $( compgen -g -- "$cur" ) )
38
if [[ "$cur" == -* ]]; then
39
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
43
complete -F _useradd useradd
45
# ex: ts=4 sw=4 et filetype=sh