# xhost(1) completion -*- shell-script -*- proc _xhost { var cur = '', prev = '', words = '', cword = '' _init_completion || return match $cur { with +* _known_hosts_real -p+ $(cur:1) with -* _known_hosts_real -p- $(cur:1) with * _known_hosts_real $cur } } && complete -F _xhost xhost # ex: ts=4 sw=4 et filetype=sh