Last active
September 4, 2016 08:16
-
-
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!
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
#! /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] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
oh, thanks @marshally, I was looking for that a few minutes ago.