Skip to content

Instantly share code, notes, and snippets.

@jsachs
Last active August 29, 2015 14:17
Show Gist options
  • Save jsachs/117f308d2c02390b64e9 to your computer and use it in GitHub Desktop.
Save jsachs/117f308d2c02390b64e9 to your computer and use it in GitHub Desktop.
Mac Setup Script
# 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[@]}
@martzcodes
Copy link

@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 me

Thanks for the script!

@jsachs
Copy link
Author

jsachs commented Mar 27, 2015

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