Skip to content

Instantly share code, notes, and snippets.

@calavera
Last active September 4, 2016 08:16
Show Gist options
  • Save calavera/9374b247cbe060c1b608 to your computer and use it in GitHub Desktop.
Save calavera/9374b247cbe060c1b608 to your computer and use it in GitHub Desktop.
From 0 to OMG my new laptop is almost ready for some coding!
#! /bin/sh
# Enable FileVault
if [[ `fdesetup status` != "FileVault is On." ]]; then
sudo fdesetup enable
fi
xcode-select --install
echo "###############################################################"
echo "###############################################################"
echo "### PLEASE INSTALL X-CODE AND ACCEPT ITS LICENSE ###"
echo "###############################################################"
echo "###############################################################"
echo "Continue? [y/n] "
read cont
if [[ "$cont" != "y" ]]; then
echo "WAT? $cont"
exit
fi
sh -c "`curl -fsSL https://raw.github.com/skwp/dotfiles/master/install.sh`"
brew doctor
brew install vim git mercurial gh go chruby ruby-install docker ansible ngrok cmake pkg-config
brew tap homebrew/versions
brew tap caskroom/cask
brew install brew-cask
brew cask install vagrant virtualbox google-chrome --appdir=/Applications
brew cask install divyy alfred dropbox iterm2 karabiner seil onepassword viscosity spotify licecap
brew cask alfred
brew tap fnichol/dvm
brew install dvm
ruby-install ruby 2.1.2
ruby-install ruby 1.9.3
cat >~/.zsh.after/gopath.zsh <<EOL
export GOPATH="$HOME/go"
export PATH=$HOME/go/bin:$PATH
EOL
cat >~/.zsh.after/gh.zsh <<EOL
eval "$(gh alias -s)"
EOL
cat >~/.zsh.after/chruby.zsh <<EOL
source /usr/local/opt/chruby/share/chruby/chruby.sh
source /usr/local/opt/chruby/share/chruby/auto.sh
EOL
cat >~/.ruby-version <<EOL
ruby-2.1.2
EOL
cat >~/.vimrc.before <<EOL
:au FocusLost * :wa
EOL
GOPATH=$HOME/go
go get github.com/tools/godep
L=/usr/local/bin/hk && curl -sL -A "`uname -sp`" https://hk.heroku.com/hk.gz | zcat >$L && chmod +x $L
git config --global user.name "David Calavera"
git config --global user.email [email protected]
@calavera
Copy link
Author

oh, thanks @marshally, I was looking for that a few minutes ago.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment