]> Tony Duckles's Git Repositories (git.nynim.org) - dotfiles.git/blob - .bash_completion
.bashrc: Add python pip --user path after finalizing $PATH
[dotfiles.git] / .bash_completion
1 #!/bin/sh
2 # user bash completion definitions
3
4 : ${USER_BASH_COMPLETION_DIR:=~/.bash_completion.d}
5
6 test -n "$USER_BASH_COMPLETION_DIR" && {
7 # source completion directory definitions
8 if [ -d $USER_BASH_COMPLETION_DIR -a -r $USER_BASH_COMPLETION_DIR -a \
9 -x $USER_BASH_COMPLETION_DIR ]; then
10 for i in $USER_BASH_COMPLETION_DIR/*; do
11 [[ ${i##*/} != @(*~|*.bak|*.swp|\#*\#|*.dpkg*|.rpm*) ]] &&
12 [ \( -f $i -o -h $i \) -a -r $i ] && . $i
13 done
14 fi
15 unset i
16 }