Created
November 5, 2015 23:42
-
-
Save popsikle/611616095555b8e26347 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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