Skip to content

Instantly share code, notes, and snippets.

@leviable
Last active January 16, 2018 15:08
Show Gist options
  • Save leviable/e26bc857f96931c4e03bfdaf930fe8d3 to your computer and use it in GitHub Desktop.
Save leviable/e26bc857f96931c4e03bfdaf930fe8d3 to your computer and use it in GitHub Desktop.
Setting up a new Macbook

Install oh-my-zsh

Set homebrew API key in .zshrc:

  • export HOMEBREW_GITHUB_API_TOKEN=<Github API Token>

Install pyenv from https://amaral.northwestern.edu/resources/guides/pyenv-tutorial

  • curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash
  • Copy the three lines the script outputs to your .bashrc/.zshrc/.whateverrc and source it source ~/.zshrc
  • Install the latest python 3: pyenv install 3.6.4
  • To see available versions: pyenv versions
  • Set the newly installed version as the global version: pyenv global 3.6.4

Install misakwa's dotvim: https://github.com/misakwa/dotvim

  • After running ./bootstrap.sh, you will need to edit out two lines from the .vimrc before everything will install
  • Edit out set statusline+=%{fugitive#statusline()} -> # set statusline+=%{fugitive#statusline()}
  • Edit out set statusline+=%{SyntasticStatuslineFlag()} -> # set statusline+=%{SyntasticStatuslineFlag()}
  • Quit out of vim, then reedit the .vimrc. Select yes at the bottom of the screen to install everything
  • Finally, edit the .vimrc again, and un-comment the two lines from above

Install macvim with clipboard access

  • Install xcode and accept the EULA
  • run $ brew reinstall macvim --with-override-system-vim

Set the key repeat and type speed settings:

  • defaults write NSGlobalDomain InitialKeyRepeat -int 20
  • defaults write NSGlobalDomain KeyRepeat -int 2

Set your git config:

  • git config --global user.name "<username>"
  • git config --global user.email "<name>@g<domain>.com"
  • git config --global alias.co checkout
  • git config --global alias.st status
  • git config --global alias.br branch
  • git config --global alias.ci commit

Set your global git ignore

  • git config --global core.excludesfile ~/.gitignore_global
*.pyc
.DS_Store
*.swp
*.swo
.venv*
.tags
.python-version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment