X-Git-Url: http://git.iain.cx/?p=profile.git;a=blobdiff_plain;f=.profile.d%2Fcompletion.bashrc;h=0f71b59751e248a715d55937c32eff79e2365b7a;hp=e18ec39bf531122b9da00531b4061431024d7527;hb=2067a62fdad120faa51c2ab6fedf33d55aec469d;hpb=91067b05d0ae3dd4388065c4767148aa11ac6486 diff --git a/.profile.d/completion.bashrc b/.profile.d/completion.bashrc index e18ec39..0f71b59 100644 --- a/.profile.d/completion.bashrc +++ b/.profile.d/completion.bashrc @@ -1,4 +1,6 @@ -# $Id$ +# Old bash doesn't have completion support. +if ! builtin complete 2>&1 | grep 'not a shell builtin' >/dev/null; then + # Helper! export COMPLETION_DIR_SSH=~/.ssh/hosts export COMPLETION_DIR_TELNET=~/.telnet/hosts @@ -130,3 +132,5 @@ complete -F _known_hosts knh complete -F _modprobe modprobe complete -F _rmmod rmmod complete -F _global global + +fi