Skip to content

Instantly share code, notes, and snippets.

@elliotlarson
Last active February 25, 2018 16:53
Show Gist options
  • Select an option

  • Save elliotlarson/7d14d38808acde05ebd62da827f91a9f to your computer and use it in GitHub Desktop.

Select an option

Save elliotlarson/7d14d38808acde05ebd62da827f91a9f to your computer and use it in GitHub Desktop.
Configuration Of Mac OS Sierra

Clean Install of Mac OS Sierra

Create install USB drive

Download Sierra (or current Mac OS) via the AppStore App. Cancel out of the installer window when it loads up after it downloads.

The installer app will be in the Applications directory.

After inserting the USB stick, run the following command on the terminal. Note this expects the USB drive to be named Untitled:

$ sudo /Applications/Install\ macOS\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled --applicationpath /Applications/Install\ macOS\ Sierra.app

Wipe drive and install OS

  • Insert the USB drive with the OS installer on it.
  • Restart the computer and hold down the alt key.
  • Choose "Install mac OS" option
  • When the option shows, pick Disk Utilities and use this to erase the hard drive
  • Then choose the main menu option to install the mac OS

Getting setup

  • Make sure the OS is up to date
  • Install Xcode
  • Install Xcode Select for command line tools:
$ xcode-select --install
  • Drag over backed up files and dots
  • Install Homebrew (follow the instructions here): https://brew.sh/
  • Install these brew packages:
    • zsh
    • git
    • vim
    • tmux
    • nodejs
    • yarn
    • imagemagick
    • rbenv
    • rbenv-gemset
    • pyenv
    • pyenv-virtualenv
    • postgres (then brew services start postgres)
    • mysql (then brew services start mysql)
    • redis (then brew services start redis)
    • fzf (then run script ./usr/local/opt/fzf/install)
    • chromedriver
    • phantomjs
    • ansible
    • ag
    • tig
    • stow
    • openssl
    • httpie
    • sqlite
    • pv
    • tree
    • nmap
    • golang
    • neovim/neovim/neovim
    • heroku
  • Install these brew cask packages:
    • dropbox
    • iterm2
    • visual-studio-code
    • istat-menus
    • virtualbox
    • vagrant
    • screenhero
    • skype
  • Install oh-my-zsh: https://github.com/robbyrussell/oh-my-zsh
  • Install global npms:
    • angular-cli
    • node-sass
    • typescript
  • Show hidden files in finder
$ defaults write com.apple.finder AppleShowAllFiles YES
$ killall Finder
  • Keyboard hold down key repeat
$ defaults write -g ApplePressAndHoldEnabled -bool false
  • Manually download chrome (there are some permissions issues with approach of using brew cask to download Chrome.
  • Install additional apps from the App Store
  • Install dotfiles: https://github.com/onehouse/dotfiles and follow README directions
  • Use brew installed ZSH as default shell:
$ sudo dscl . -create /Users/$USER UserShell /usr/local/bin/zsh
  • Config iterm with dark color scheme
  • Get vim setup
$ curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
$ v
>:PlugInstall
  • Install fonts
$ brew tap caskroom/fonts
$ brew cask install font-consolas-for-powerline
$ brew cask install font-fira-code font-fira-mono font-fira-mono-for-powerline font-fira-sans
$ brew cask install font-roboto
$ rbenv install 2.4.1
$ rbenv global 2.4.1
  • Install Pyenv pythons
$ pyenv install 3.6.1
$ pyenv global 3.6.1
  • Set default font for iterm: Menlo size 13

  • Install Sketch 3

  • Install Dash

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