Skip to content

Instantly share code, notes, and snippets.

@popsikle
Created November 5, 2015 23:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save popsikle/611616095555b8e26347 to your computer and use it in GitHub Desktop.
Save popsikle/611616095555b8e26347 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
if ! type brew > /dev/null 2>&1 ; then
log_info "Installing Brew"
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
if [ -z "$BREW_PREFIX" ]; then
BREW_PREFIX=$(brew --prefix)
export PATH="${BREW_PREFIX}/bin:$PATH"
export PATH="${BREW_PREFIX}/sbin:$PATH"
export PATH="$PATH:$HOME/bin"
fi
if ! type $BREW_PREFIX/bin/python > /dev/null 2>&1 ; then
log_info "Install brew-python"
brew install python
fi
# Lets Complete some bash!
if [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion
fi
if ! type fswatch > /dev/null 2>&1 ; then
log_info "Installing fswatch"
brew install fswatch
fi
if ! type greadlink > /dev/null 2>&1 ; then
log_info "Installing coreutils"
brew install coreutils
fi
if [ -z "$(pip freeze 2>&1 | grep MacFSEvents)" ]; then
log_info "Installing Python MacFSEvents Library"
${BREW_PREFIX}/bin/pip install MacFSEvents 2> /dev/null
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment