Skip to content

Commit

Permalink
wrap brew call to avoid errors on *nix other than OSX
Browse files Browse the repository at this point in the history
  • Loading branch information
1334 committed Nov 18, 2014
1 parent 614772e commit ed95457
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ export PATH="bin:/usr/local/bin:~/bin:/usr/local/heroku/bin:$PATH"

export EDITOR=vim

if [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion
if command -v brew 2>/dev/null; then
if [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion
fi
fi

0 comments on commit ed95457

Please sign in to comment.