My OS X Setup Guide ============================= ## Config * Adjust trackpad settings to my liking (Preferences > Trackpad) * Remap `caps-lock` to `control` (Preferences > Keyboard > Modifier Keys... button) ## Install * [XCode](https://itunes.apple.com/nz/app/xcode/id497799835) and command line tools - `xcode-select --install` (after XCode is installed) * [Homebrew](http://brew.sh/) - `/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"` * iTerm2 - `brew cask install iterm2` - Preferences > General > Closing: Uncheck all - Close Terminal, open iTerm2 * Zsh - `brew install zsh zsh-completions` * Oh-My-Zsh - `curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh` * Tmux - `brew install tmux` - iTerm2: Preferences > Profiles > General > Command > Send text at start: `tmux -2` - `mkdir -p ~/.tmux/plugins` - `gcl https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm` - Restart iTerm - `tmux source-file ~/.tmux.conf` - `Ctrl-b I` to install the tmux plugins * GitHub - `ssh-keygen -t rsa -b 4096 -C "locksmithdon@gmail.com"` - `/Users/don/.ssh/github_rsa` - `ssh-add ~/.ssh/github_rsa` - `brew install Caskroom/cask/xquartz homebrew/x11/xclip` - `xclip -sel clip < ~/.ssh/github_rsa.pub` - Then paste into new SSH key at https://github.com/settings/keys * Dotfiles - `mkdir -p ~/projects ~/repos` - `cd ~/projects` - `gcl git@github.com:locksmithdon/dotfiles.git` - `dotfiles/link` * Python - `brew install python` - `pip install --upgrade setuptools` - `pip install --upgrade pip` - `brew install pyenv` - `brew install pyenv-virtualenv` * Node.js - `curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh | bash` - Restart iTerm2 - `nvm install 5` - `nvm install 4` - `nvm alias default 4` * Ruby - `brew install ruby-install` - `brew install chruby` - `ruby-install ruby 2.2.3` * Java - `brew cask install java` * Vim - `brew install vim neovim/neovim/neovim`(considering nvim) - `gcl https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim` - `vim +PluginInstall +qall` - `~/.vim/bundle/YouCompleteMe/install.sh` * Powerline - `pip install powerline-status` - `gcl https://github.com/powerline/fonts.git ~/repos/powerline-fonts` - `~/repos/powerline-fonts/install.sh` ## More config * iTerm2: Preferences > Profiles > Text > Fonts > 14pt Sauce Code Powerline ## More installs * Chrome - `brew cask install google-chrome` * Firefox - `brew cask install firefox` * Alfred - `brew cask install alfred`