Skip to content

Instantly share code, notes, and snippets.

What would you like to do?

New OS X Computer Setup

Below are the programs I install, the Preferences I change, and the configurations I tweak after doing a fresh install of macOS.

Homebrew / Cask

$ /usr/bin/ruby -e "$(curl -fsSL"
$ brew tap caskroom/cask
$ brew tap caskroom/versions
$ brew tap caskroom/fonts
$ brew tap tldr-pages/tldr

Rearrage PATHs

This is so that Homebrew-installed tools load instead of built-in ones. git, emacs, etc.

$ sudo vi /etc/paths

Put /usr/local/bin above /usr/bin in the list. Save file and restart terminal.

Install with Cask

$ brew cask install alfred                #
$ brew cask install flux                  #
$ brew cask install font-fira-code        #
$ brew cask install font-source-code-pro  #
$ brew cask install google-chrome         #
$ brew cask install iterm2-nightly        #
$ brew cask install java                  #
$ brew cask install keepingyouawake       #
$ brew cask install licecap               #
$ brew cask install lunchy                #
$ brew cask install middleclick           #
$ brew cask install osxfuse               #
$ brew cask install spectacle             #
$ brew cask install tunnelblick           #

Install with Homebrew

$ brew install aspell                     #
$ brew install bash-completion            #
$ brew install git                        #
$ brew install gnupg2                     #
$ brew install homebrew/fuse/sshfs        #
$ brew install htop                       #
$ brew install jq                         #
$ brew install leiningen                  #
$ brew install markdown                   #
$ brew install pandoc                     #
$ brew install shellcheck                 #
$ brew install task                       #
$ brew install the_platinum_searcher      #
$ brew install tldr                       #
$ brew install trash                      #
$ brew install tree                       #

launchctl / lunchy

build locate database:

$ lunchy install /System/Library/LaunchDaemons/
$ lunchy start

Create plist to periodically run brew update (replace <username> below):

  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
  <plist version="1.0">
      <true />

And start it:

$ lunchy start ~/Library/LaunchAgents/com.<username>.brew-update.plist

Git configuration

$ git config --global '<your-proper-name>'
$ git config --global <email-address>
$ git config --global core.editor 'vim' # or whatever editor you like


First install the recommended version of Emacs

$ brew tap d12frosted/emacs-plus
$ brew install emacs-plus
$ brew linkapps emacs-plus
$ git clone ~/.emacs.d
# the next two commands install my .spacemacs file--you might not want that
$ git clone
$ cd ~/dotfiles/ && ./

Bash prompt

$ brew install bash-git-prompt

Add to .bash_profile:

if [ -f "$(brew --prefix)/opt/bash-git-prompt/share/" ]; then
    source "$(brew --prefix)/opt/bash-git-prompt/share/"


Link Google Account to iCal


  • Map Caps Lock key to Control modifier in Keyboard prefs
  • Adjust key repeat in Keyboard prefs
  • Enable Remote Login in Sharing prefs
  • Prevent computer from sleeping automatically when the display is off in Energy Saver prefs
  • Put display to sleep in Mission Control > Hot Corners prefs

Generate SSH key and add it to ssh-agent

$ ssh-keygen -t rsa -b 4096 -C "<email-address>"
$ chmod 700 ~/.ssh && chmod 600 ~/.ssh/*
$ eval "$(ssh-agent -s)"
$ ssh-add ~/.ssh/id_rsa

Edit iTerm2 settings to bind alt+arrow keys to move forward/backward


This comment has been minimized.

Copy link

@teomaragakis teomaragakis commented Aug 30, 2016

Thanks! This helped me find a couple of great apps I did not know of.


This comment has been minimized.

Copy link
Owner Author

@bi1yeu bi1yeu commented Dec 29, 2017

I made a script to do a lot of this:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment