diff options
Diffstat (limited to 'contrib/xhost')
-rw-r--r-- | contrib/xhost | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/contrib/xhost b/contrib/xhost index 006c961e..cec4adcf 100644 --- a/contrib/xhost +++ b/contrib/xhost @@ -3,16 +3,17 @@ have xhost && _xhost () { - local cur=`_get_cword` + local cur + _get_comp_words_by_ref cur - case "$cur" in + case $cur in +*) _known_hosts_real -p+ "${cur:1}" ;; -*) _known_hosts_real -p- "${cur:1}" ;; *) _known_hosts_real "$cur" ;; esac return 0 -} +} && complete -F _xhost xhost # Local variables: |