X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=.profile.d%2Fcompletion.bashrc;h=ae18697cbf6fd7d40931ecb121d60fd122cc028c;hb=a5638451e369c0fb8349790968755742532d536b;hp=90db89c973ff2eff31cbc35cb23624c8b1a8f620;hpb=ba8e8ba49ac7d26a21537f55af435119dcb510de;p=profile.git diff --git a/.profile.d/completion.bashrc b/.profile.d/completion.bashrc index 90db89c..ae18697 100644 --- a/.profile.d/completion.bashrc +++ b/.profile.d/completion.bashrc @@ -103,6 +103,15 @@ function _rmmod() { 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 @@ -120,3 +129,9 @@ complete -F _known_hosts kill_known_host complete -F _known_hosts knh complete -F _modprobe modprobe complete -F _rmmod rmmod +complete -F _global global + +unset COMPLETION_DIR_PING +unset COMPLETION_DIR_RDP +unset COMPLETION_DIR_SSH +unset COMPLETION_DIR_TELNET