Skip to content

Commit

Permalink
check brew installed
Browse files Browse the repository at this point in the history
  • Loading branch information
martynovs committed Mar 19, 2012
1 parent 0a6f402 commit 1dc0f70
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions profile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ if [ -f /opt/local/etc/bash_completion ]; then
. /opt/local/etc/bash_completion
fi
# Homebrew version
if [ -f `brew --prefix`/etc/bash_completion ]; then
. `brew --prefix`/etc/bash_completion
if [ -f `which brew` ]; then
if [ -f `brew --prefix`/etc/bash_completion ]; then
. `brew --prefix`/etc/bash_completion
fi
fi

0 comments on commit 1dc0f70

Please sign in to comment.