2011-11-01 22:14:45 +02:00
|
|
|
# xhost(1) completion -*- shell-script -*-
|
2009-10-01 20:54:51 +03:00
|
|
|
|
2009-05-02 17:13:46 +02:00
|
|
|
_xhost ()
|
|
|
|
{
|
2011-04-21 11:04:51 +03:00
|
|
|
local cur prev words cword
|
|
|
|
_init_completion || return
|
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
|
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
|
|
|
|
2009-10-04 19:42:50 +02:00
|
|
|
# ex: ts=4 sw=4 et filetype=sh
|