Permalink
Browse files

Check brew is available.

  • Loading branch information...
1 parent 237138c commit 1d1e7a7c752df164f74de5a30f549ac5c96c9f99 @mattfoster committed Feb 20, 2011
Showing with 7 additions and 6 deletions.
  1. +7 −6 05_gnu_coreutils
View
@@ -1,8 +1,9 @@
# Include GNU coreutils aliases if installed via homebrew
-
-ALIASES=$(brew --prefix coreutils)/aliases
-if [ -e $ALIASES ]; then
- source $ALIASES
- # Whilst experimenting I had problems with my prompt and g[
- unalias [
+if [[ -x brew ]]; then
+ ALIASES=$(brew --prefix coreutils)/aliases
+ if [ -e $ALIASES ]; then
+ source $ALIASES
+ # Whilst experimenting I had problems with my prompt and g[
+ unalias [
+ fi
fi

0 comments on commit 1d1e7a7

Please sign in to comment.