X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=.profile.d%2Fcompletion.bashrc;h=0f71b59751e248a715d55937c32eff79e2365b7a;hb=35c3c2aa5aa6de197ae25495a6069f50151202ad;hp=775c20891255d9521945a27dc129a7bd3aaf8472;hpb=0900336f1258a74785c414ace05470f71705dda4;p=profile.git diff --git a/.profile.d/completion.bashrc b/.profile.d/completion.bashrc index 775c208..0f71b59 100644 --- a/.profile.d/completion.bashrc +++ b/.profile.d/completion.bashrc @@ -1,3 +1,6 @@ +# 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 @@ -129,3 +132,5 @@ complete -F _known_hosts knh complete -F _modprobe modprobe complete -F _rmmod rmmod complete -F _global global + +fi