2009-05-02 17:13:46 +02:00
|
|
|
# xhost(1) completion
|
2009-10-01 20:54:51 +03:00
|
|
|
|
2009-05-02 17:13:46 +02:00
|
|
|
have xhost &&
|
|
|
|
_xhost ()
|
|
|
|
{
|
2010-02-08 17:25:08 +01:00
|
|
|
local cur
|
|
|
|
_get_comp_words_by_ref cur
|
2009-05-02 17:13:46 +02:00
|
|
|
|
2009-12-30 00:39:59 +01: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
|
|
|
|
2009-10-04 19:42:50 +02:00
|
|
|
return 0
|
2010-04-26 20:04:48 +02:00
|
|
|
} &&
|
2009-05-02 17:13:46 +02:00
|
|
|
complete -F _xhost xhost
|
2009-10-01 20:54:51 +03:00
|
|
|
|
|
|
|
# Local variables:
|
|
|
|
# mode: shell-script
|
2009-10-04 19:42:50 +02:00
|
|
|
# sh-basic-offset: 4
|
2009-10-01 20:54:51 +03:00
|
|
|
# sh-indent-comment: t
|
2009-10-04 19:42:50 +02:00
|
|
|
# indent-tabs-mode: nil
|
2009-10-01 20:54:51 +03:00
|
|
|
# End:
|
2009-10-04 19:42:50 +02:00
|
|
|
# ex: ts=4 sw=4 et filetype=sh
|