From 7ddb8084297c5bf30db73e9b9058d71f52991901 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 21 Aug 2016 21:09:15 +1200 Subject: Many stylistic fixes/optimisations In particular, limit the verbose >=2.05 test to just one file: .bashrc --- bash/bashrc.d/completion.bash | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bash/bashrc.d/completion.bash') diff --git a/bash/bashrc.d/completion.bash b/bash/bashrc.d/completion.bash index c120878d..1246ba31 100644 --- a/bash/bashrc.d/completion.bash +++ b/bash/bashrc.d/completion.bash @@ -40,8 +40,11 @@ complete -A function -A variable unset # If we have dynamic completion loading (Bash>=4.0), use it if ((BASH_VERSINFO[0] >= 4)) ; then + + # Handler tries to load appropriate completion for commands _completion_loader() { [[ -n $1 ]] || return + local compspec compspec=$HOME/.bash_completion.d/$1.bash [[ -f $compspec ]] || return source "$compspec" >/dev/null 2>&1 && return 124 -- cgit v1.2.3