diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-21 23:42:12 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-21 23:42:12 +1200 |
commit | 705432dba485f734fe7d201a6088561bed983e35 (patch) | |
tree | 471bff90e99b06a13c15c6a328d57eeace0fbb1b /bash/bashrc | |
parent | Correct some England (diff) | |
download | dotfiles-705432dba485f734fe7d201a6088561bed983e35.tar.gz dotfiles-705432dba485f734fe7d201a6088561bed983e35.zip |
Remove double-up import of completions
Diffstat (limited to 'bash/bashrc')
-rw-r--r-- | bash/bashrc | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/bash/bashrc b/bash/bashrc index c2055feb..d6b2adca 100644 --- a/bash/bashrc +++ b/bash/bashrc @@ -102,20 +102,3 @@ for sh in "$ENV" "$HOME"/.bashrc.d/*.bash ; do [[ -e $sh ]] && source "$sh" done unset -v sh - -# If we have dynamic completion loading (Bash>=4.0), use it -if ((BASH_VERSINFO[0] >= 4)) ; then - _completion_loader() { - [[ -n $1 ]] || return - compspec=$HOME/.bash_completion.d/$1.bash - [[ -f $compspec ]] || return - source "$compspec" >/dev/null 2>&1 && return 124 - } - -# If not, load all of the completions up now -else - for sh in "$HOME"/.bash_completion.d/*.bash ; do - [[ -e $sh ]] && source "$sh" - done - unset -v sh -fi |