Skip to content

Instantly share code, notes, and snippets.

@graysonchen
Last active August 1, 2019 08:37
Show Gist options
  • Save graysonchen/3f9d55cdb585e437fa38d8ab630e1397 to your computer and use it in GitHub Desktop.
Save graysonchen/3f9d55cdb585e437fa38d8ab630e1397 to your computer and use it in GitHub Desktop.
Setting up Your Mac
#!/usr/bin/env bash
# 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 homebrew science
brew tap homebrew/science
# Binaries
binaries=(
adns
ffmpeg
icu4c
libtasn1
node
python
tbb
fontconfig
ilmbase
libtiff
npth
python3
unar
ansible
freetype
imagemagick@6
libtool
numpy
qrencode
unrar
autoconf
gcc
isl
libunistring
opencv
readline
webp
automake
gd
jpeg
libusb
redis
wget
autossh
gdbm
lame
libvorbis
openexr
sdl
x264
awscli
gettext
libassuan
libyaml
openssl
sdl_image
xvid
bcrypt
git
libffi
macvim
[email protected]
sdl_mixer
xz
cmake
git-crypt
libgcrypt
mercurial
p11-kit
sdl_ttf
yarn
coreutils
gmp
libgpg-error
mobile-shell
pinentry
smartmontools
youtube-dl
cscope
gnupg
libksba
mpfr
pkg-config
curl
gnutls
libmpc
mtr
portmidi
dnstracer
go
libogg
namebench
postgresql
sqlite
e2fsprogs
graphviz
libpng
nettle
protobuf
ssh-copy-id
eigen
httping
libsodium
nmap
proxychains-ng
stunnel
zsh
mackup
autojump
)
# Install binaries
echo "Installing binaries..."
brew install ${binaries[@]}
# Cleanup
brew cleanup
# Install brew-cask
brew tap caskroom/cask
# Casks
casks=(
unetbootin
visual-studio-code
appcleaner
dash
google-chrome
iterm2
launchcontrol
omnigraffle
sourcetree
sublime-text
vagrant
virtualbox
dropbox
beardedspice
cyberduck
slack
psequel
# leonsoft-kras-transmission-remote-gui
bartender
skype
firefox
istat-menus
sizeup
coconutbattery
caffeine
hazel
little-snitch
vlc
sequel-pro
)
# Install casks to /Applications
echo "Installing casks..."
brew cask install --appdir="/Applications" ${casks[@]}
# # Fonts
# fonts=(
# font-inconsolata
# )
# # Install fonts
# echo "Installing fonts..."
# brew cask install ${fonts[@]}
# Install Oh My Zsh
if [ ! -d ~/.oh-my-zsh ]; then
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
fi
# Intall RVM
if [ ! -d ~/.rvm ]; then
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
\curl -sSL https://get.rvm.io | bash -s stable
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment