17 lines
380 B
Plaintext
Raw Normal View History

# xhost(1) completion -*- shell-script -*-
2009-05-02 17:13:46 +02:00
_xhost ()
{
local cur prev words cword
_init_completion || return
2009-05-02 17:13:46 +02:00
case $cur in
2009-10-04 19:42:50 +02:00
+*) _known_hosts_real -p+ "${cur:1}" ;;
-*) _known_hosts_real -p- "${cur:1}" ;;
*) _known_hosts_real "$cur" ;;
esac
} &&
2009-05-02 17:13:46 +02:00
complete -F _xhost xhost
2009-10-04 19:42:50 +02:00
# ex: ts=4 sw=4 et filetype=sh