Skip to content

Instantly share code, notes, and snippets.

@lmarti17
Created January 7, 2018 17:38
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save lmarti17/ad150ca990dfdab15434a270d5f0874a to your computer and use it in GitHub Desktop.
Save lmarti17/ad150ca990dfdab15434a270d5f0874a to your computer and use it in GitHub Desktop.
A shell script to install all apps / packages I usually use for working as an Interactive developer (not tested for now though)
#!/usr/bin/env bash
# Install command-line tools using Homebrew.
# Ask for the administrator password upfront.
sudo -v
# Keep-alive: update existing `sudo` time stamp until the script has finished.
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
# 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
# Make sure we’re using the latest Homebrew.
brew update
# Upgrade any already-installed formulae.
brew upgrade --all
brew install zsh
# Install more recent versions of some OS X tools.
brew install vim --override-system-vi
brew install homebrew/dupes/grep
brew install homebrew/dupes/openssh
brew install homebrew/dupes/screen
brew install homebrew/php/php55 --with-gmp
# Install font tools.
brew tap bramstein/webfonttools
brew install sfnt2woff
brew install sfnt2woff-zopfli
brew install woff2
# Install other useful binaries.$
# zsh
brew install zsh zsh-completions
curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh
chsh -s /usr/local/bin/zsh
brew install git
brew install imagemagick --with-webp
brew install nvm
nvm install v9.3.0
nvm use 9.3.0
nvm alias default 9.3.0
# Install Cask
brew install caskroom/cask/brew-cask
brew tap caskroom/versions
# Core casks
brew cask install --appdir="/Applications" alfred
brew cask install --appdir="~/Applications" iterm2
# Development tool casks
brew cask install --appdir="/Applications" sublime-text
brew cask install --appdir="/Applications" atom
brew cask install --appdir="/Applications" virtualbox
# Misc casks
brew cask install --appdir="/Applications" google-chrome
brew cask install --appdir="/Applications" firefox
brew cask install --appdir="/Applications" slack
brew cask install --appdir="/Applications" dropbox
brew cask install --appdir="/Applications" zeplin
brew cask install --appdir="/Applications" flux
brew cask install --appdir="/Applications" postman
brew cask install --appdir="/Applications" robomongo
brew cask install --appdir="/Applications" spectacle
brew cask install --appdir="/Applications" vlc
brew cask install --appdir="/Applications" whatsapp
brew cask install --appdir="/Applications" caprine
brew cask install --appdir="/Applications" spotify
# Install Docker, which requires virtualbox
# brew install docker
# brew install boot2docker
# Install developer friendly quick look plugins; see https://github.com/sindresorhus/quick-look-plugins
brew cask install qlcolorcode qlstephen qlmarkdown quicklook-json qlimagesize
# Remove outdated versions from the cellar.
brew cleanup
# Setup dev folder
cd /~
mkdir Sites
mkdir Developer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment