25 lines
399 B
Plaintext
Raw Normal View History

2009-05-02 17:13:46 +02:00
# xhost(1) completion
2009-05-02 17:13:46 +02:00
have xhost &&
_xhost ()
{
local cur=`_get_cword`
2009-05-02 17:13:46 +02:00
case "$cur" in
+*) _known_hosts_real -p+ "${cur:1}" ;;
-*) _known_hosts_real -p- "${cur:1}" ;;
*) _known_hosts_real "$cur" ;;
2009-05-02 17:13:46 +02:00
esac
return 0
}
complete -F _xhost xhost
# Local variables:
# mode: shell-script
# sh-basic-offset: 8
# sh-indent-comment: t
# indent-tabs-mode: t
# End:
# ex: ts=8 sw=8 noet filetype=sh