-# $Id$
# Helper!
export COMPLETION_DIR_SSH=~/.ssh/hosts
export COMPLETION_DIR_TELNET=~/.telnet/hosts
-export COMPLETION_DIR_RDP=~/.ssh/hosts
+export COMPLETION_DIR_RDP=~/.rdp/hosts
export COMPLETION_DIR_PING="$COMPLETION_DIR_SSH $COMPLETION_DIR_TELNET $COMPLETION_DIR_RDP"
function _generic_completion() {
return 0
}
+# Find tags with GNU GLOBAL.
+function _global() {
+ COMPREPLY=()
+ cur=${COMP_WORDS[COMP_CWORD]}
+
+ COMPREPLY=($(global -c "$cur"))
+ return 0
+}
+
complete -F _ssh rollout
complete -F _ssh ssh
complete -F _ssh sshterm
complete -F _known_hosts knh
complete -F _modprobe modprobe
complete -F _rmmod rmmod
-
-unset COMPLETION_DIR_PING
-unset COMPLETION_DIR_RDP
-unset COMPLETION_DIR_SSH
-unset COMPLETION_DIR_TELNET
+complete -F _global global