Last active
August 29, 2015 14:17
-
-
Save jsachs/117f308d2c02390b64e9 to your computer and use it in GitHub Desktop.
Mac Setup Script
This file contains 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
# Check for Homebrew,# Install if we don't have it | |
if test ! $(which brew); then | |
echo "Installing homebrew..." | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
fi | |
# Update homebrew recipes | |
brew update | |
# Install GNU core utilities (those that come with OS X are outdated) | |
brew install coreutils | |
# Install GNU `find`, `locate`, `updatedb`, and `xargs`, g-prefixed | |
brew install findutils | |
# Install Zsh | |
brew install oh-my-zsh | |
# Install more recent versions of some OS X tools | |
brew tap homebrew/dupes | |
brew install homebrew/dupes/grep | |
PATH=$(brew --prefix coreutils)/libexec/gnubin:$PATH | |
# Starter list of binaries to install | |
binaries=( | |
ack | |
android-sdk | |
ant | |
apktool | |
archey | |
atk | |
atkmm | |
autoconf | |
automake | |
bdw-gc | |
bison | |
boost | |
brew-cask | |
cairo | |
cairomm | |
cloog | |
coreutils | |
ctags | |
curl | |
czmq | |
emacs | |
ffmpeg | |
findutils | |
fontconfig | |
fontforge | |
freetype | |
gcc | |
gdbm | |
gdk-pixbuf | |
gettext | |
git | |
glib | |
glibmm | |
gmp | |
gobject-introspection | |
graphicsmagick | |
graphviz | |
grep | |
gsl | |
gtk+ | |
gtkmm | |
harfbuzz | |
heroku-toolbelt | |
hicolor-icon-theme | |
html2text | |
hub | |
icu4c | |
isl | |
jpeg | |
jq | |
jython | |
lame | |
libevent | |
libffi | |
libmpc | |
libpng | |
libsigc++ | |
libtiff | |
libtool | |
libvo-aacenc | |
libxml2 | |
little-cms | |
mackup | |
mongodb | |
mongodb26 | |
mongoose | |
mpfr | |
node | |
nvm | |
objective-caml | |
openssl | |
pango | |
pangomm | |
pcre | |
pixman | |
pkg-config | |
popt | |
potrace | |
python | |
readline | |
reattach-to-user-namespace | |
redis | |
rename | |
scons | |
sqlite | |
the_silver_searcher | |
tig | |
tmux | |
trash | |
tree | |
webkit2png | |
wget | |
x264 | |
xvid | |
xz | |
zeromq | |
zopfli | |
) | |
echo "installing binaries..." | |
brew install ${binaries[@]} | |
brew cleanup | |
# install apps with cask | |
brew install caskroom/cask/brew-cask | |
# Apps (sample list, to be updated before use) | |
apps=( | |
1password | |
dropbox | |
google-chrome | |
appcleaner | |
firefox | |
iterm2 | |
atom | |
flux | |
mailbox | |
vlc | |
skype | |
transmission | |
android-studio | |
steam | |
cyberduck | |
evernote | |
github | |
google-drive | |
joinme | |
GPG-keychain | |
league-of-legends | |
minecraft | |
slack | |
) | |
# Install apps to /Applications# Default is: /Users/$user/Applicationsecho "installing apps..." | |
brew cask install --appdir="/Applications" ${apps[@]} |
Fixed. Copy-pasted strangely from Hackpad. Thanks!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@jsachs I got a syntax error "unexpected end of file" when I ran this... on line 4 you should put
fi
on its own line, that got it to work for meThanks for the script!