Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (14 sloc) 453 Bytes
shopt -s progcomp
unamestr=`uname`
# ----------- DARWIN ---------------
if [[ "$unamestr" == "Darwin" ]]; then
# global/brew completions
if [ -d `brew --prefix`/etc/bash_completion.d ]; then
for f in `brew --prefix`/etc/bash_completion.d/*; do source $f; done
fi
fi
# followed by local completions/overrides
if [ -d ~/dotfiles/bash/completion ]; then
for f in ~/dotfiles/bash/completion/*; do source $f; done
fi
source ~/dotfiles/bashrc