Skip to content

Instantly share code, notes, and snippets.

@cpilsworth
Last active October 13, 2015 15:05
Show Gist options
  • Save cpilsworth/56124155e261b76c6f82 to your computer and use it in GitHub Desktop.
Save cpilsworth/56124155e261b76c6f82 to your computer and use it in GitHub Desktop.

Install XCode command line tools

gcc will trigger the download dialog.

Download brew

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Install Brews

brew install git
brew install hub
brew install ruby-install
brew install go
brew install n  
brew install wget
brew install maven
brew install tree
brew install python
brew install selecta  #https://github.com/garybernhardt/selecta
brew tap pivotal/tap
brew install cloudfoundry-cli

Install Casks

brew cask install java
brew cask install dockertoolbox
brew cask install vagrant
brew cask install --appdir="/Applications" intellij-idea-ce
brew case install --appdir="/Applications" spotify
brew cask install --appdir="/Applications" skype
brew cask install --appdir="/Applications" atom
brew cask install --appdir="/Applications" google-chrome
brew cask install --appdir="/Applications" google-drive
brew cask install --appdir="/Applications" webstorm
brew cask install --appdir="/Applications" 1password
brew cask install --appdir="/Applications" dropbox
brew cask install --appdir="/Applications" textwrangler

# quicklook plugins - https://github.com/sindresorhus/quick-look-plugins
brew cask install qlmarkdown
brew cask install qlcolorcode
brew cask install quicklook-json
brew cask install betterzipql

Setup GitHub keys

https://help.github.com/articles/generating-ssh-keys/

ssh-keygen -t rsa -b 4096 -C "cpilsworth@gmail.com"
# Check that agent is running
eval "$(ssh-agent -s)"
# Add identity to agent
ssh-add ~/.ssh/id_rsa
# Copy to the clipboard
pbcopy < ~/.ssh/id_rsa.pub
# Open github.com ssh keys page
open https://github.com/settings/ssh
#Test the connection
ssh -T git@github.com

# Set git config values
git config --global user.name "Chris Pilsworth"
git config --global user.email "cpilsworth@gmail.com"
git config --global github.user cpilsworth
git config --global color.ui true
git config --global core.autocrlf input

Download .dotfiles

cd ~
git clone git@github.com:cpilsworth/.dotfiles.git
echo "source ~/.dotfiles/base.sh" >> ~/.bash_profile

Atom Packages

apm install vim-mode
apm install minimap
apm install markdown-writer
apm install markdown-pdf
apm install linter-eslint
apm install linter
apm install git-plus

Configure Ruby

ruby-install ruby 2.2.2  # then wait
chruby ruby-2.2.2

# Ruby configured in .dotfiles
# source /usr/local/opt/chruby/share/chruby/chruby.sh
# source /usr/local/opt/chruby/share/chruby/auto.sh

Install Gems

 gem install gist
 gem install bundler

Configure Node

n latest

npm install -g eslint

Install GVM/Gradle

curl -s get.gvmtool.net|bash  # no brew support

Configure vim

# Install vim pathogen
ln -s ~/.dotfiles/vim/bundle ~/.vim/bundle

# Load pathogen as a vim bundle
echo  "runtime bundle/vim-pathogen/autoload/pathogen.vim" >> ~/.vimrc

# Clone git bundle submodules from (see .dotfiles/.gitmodules)
git submodule update --init --recursive

# Adding some vim bundles to https://github.com/cpilsworth/.dotfiles
git submodule add https://github.com/tpope/vim-pathogen .vim/bundle/vim-pathogen
git submodule add https://github.com/wincent/command-t .vim/bundle/command-t
git submodule add -f https://github.com/bling/vim-airline .vim/bundle/vim-airline

# Removing submodules :-/
http://stackoverflow.com/a/1260982/252840

# Compile command-t
cd $HOME/.vim/bundle/Command-T/ruby/command-t
source /usr/local/share/chruby/chruby.sh
ruby extconf.rb
make clean
make

Configure OSX

# Screen shots as png
defaults write com.apple.screencapture type -string "png"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment