[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 76383dd49d690569a03ba66d328e7d0fdbb7d4b1
Ville Skyttä
ville.skytta at iki.fi
Sat Dec 26 12:12:13 UTC 2009
The following commit has been merged in the master branch:
commit 76383dd49d690569a03ba66d328e7d0fdbb7d4b1
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Sat Dec 26 14:11:49 2009 +0200
Just use _known_hosts directly for generic vncviewer.
diff --git a/contrib/vncviewer b/contrib/vncviewer
index d3e5c59..59cb6d0 100644
--- a/contrib/vncviewer
+++ b/contrib/vncviewer
@@ -7,7 +7,7 @@ _vncviewer_bootstrap()
case "$(_realcommand vncviewer)" in
*xvnc4viewer) fname=_xvnc4viewer ;;
*tightvncviewer) fname=_tightvncviewer ;;
- *) fname=_vncviewer ;;
+ *) fname=_known_hosts ;;
esac
# Install real completion for subsequent completions
@@ -15,13 +15,7 @@ _vncviewer_bootstrap()
$fname # Generate completions once for now
unset -f _vncviewer_bootstrap
} &&
-complete -F _vncviewer_bootstrap vncviewer &&
-_vncviewer()
-{
- COMPREPLY=()
- local cur=`_get_cword`
- _known_hosts_real "$cur"
-}
+complete -F _vncviewer_bootstrap vncviewer
have tightvncviewer &&
_tightvncviewer()
--
bash-completion
More information about the Bash-completion-commits
mailing list