Skip to content

Commit

Permalink
fix bash completion on osx by sourcing brew bash_completion.d/*
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoiron committed Jul 16, 2015
1 parent 2ec5101 commit c25f8ab
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions home/.bashrc
Expand Up @@ -111,6 +111,11 @@ if [ -n "$(which brew)" ]; then
if [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion
fi
if [ -d $(brew --prefix)/etc/bash_completion.d/ ]; then
for i in $(brew --prefix)/etc/bash_completion.d/*; do
source "$i"
done
fi
else
if [ -d ~/.bash_completion.d ]; then
for i in ~/.bash_completion.d/*; do
Expand Down

0 comments on commit c25f8ab

Please sign in to comment.