Skip to content

Instantly share code, notes, and snippets.

@josh-jacobsen
Forked from don-smith/mac-setup.md
Created July 27, 2016 03:42
Show Gist options
  • Save josh-jacobsen/3b55d8688a0ac8dc25712fd1bbb278cd to your computer and use it in GitHub Desktop.
Save josh-jacobsen/3b55d8688a0ac8dc25712fd1bbb278cd to your computer and use it in GitHub Desktop.

Revisions

  1. @don-smith don-smith created this gist May 12, 2016.
    82 changes: 82 additions & 0 deletions mac-setup.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,82 @@
    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 "[email protected]"`
    - `/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 [email protected]: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`