# userdel(8) completion -*- shell-script -*- proc _userdel { local cur prev words cword _init_completion || return case (prev) { -h|--help { return } -R|--root { _filedir -d return } } if [[ "$cur" == -* ]] { setvar COMPREPLY = ''( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) ) return 0 } setvar COMPREPLY = ''( $( compgen -u -- "$cur" ) ) } && complete -F _userdel userdel # ex: ts=4 sw=4 et filetype=sh