Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix errors when brew isn't installed

  • Loading branch information...
commit daf5977381e8a9af3cadac86859ba997a5e99321 1 parent 150c3db
@chadoh authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  .bash_prompt
View
2  .bash_prompt
@@ -79,7 +79,7 @@ On_IPurple='\[\e[10;95m\]' # Purple
On_ICyan='\[\e[0;106m\]' # Cyan
On_IWhite='\[\e[0;107m\]' # White
-if [ -f `brew --prefix`/etc/bash_completion ]; then
+if [ hash brew 2>/dev/null && -f `brew --prefix`/etc/bash_completion ]; then
. `brew --prefix`/etc/bash_completion
export GIT_PS1_SHOWDIRTYSTATE=1
Please sign in to comment.
Something went wrong with that request. Please try again.