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 ()
|
|
|
|
{
|
2009-06-13 08:38:52 +02:00
|
|
|
local cur=`_get_cword`
|
2009-05-02 17:13:46 +02:00
|
|
|
|
|
|
|
case "$cur" in
|
2009-07-03 22:28:13 +02:00
|
|
|
+*) _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
|
2009-10-01 20:54:51 +03:00
|
|
|
|
|
|
|
# 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
|