Reinstall macOS

Fri, 9 Feb 2018

I keep this updated for my own benefit, feel free to use it.

Erase and Reinstall

Follow Apple’s official instructions on reformatting your Mac.

Homebrew

Install the missing package manager.

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update

Fish Shell

brew install fish
echo "/usr/local/bin/fish" | sudo tee -a /etc/shells
chsh -s /usr/local/bin/fish

Restart or open a new terminal.

Install the Fish prompt theme, based on the theme by Brandon Weiss

mkdir ~/.config/fish/functions
curl https://raw.githubusercontent.com/will-stone/pure.fish/master/fish_prompt.fish > ~/.config/fish/functions/fish_prompt.fish

Tweak ls function:

touch ~/.config/fish/functions/ls.fish
open -a TextEdit ~/.config/fish/functions/ls.fish

Copy/paste the following and save

function ls --description 'List contents of directory'
  command ls -aG $argv
end

Add c function, which aliases code, quickly opening Visual Studio Code:

touch ~/.config/fish/functions/c.fish
open -a TextEdit ~/.config/fish/functions/c.fish

Copy/paste the following and save

function c --description 'Open VS Code here'
  if count $argv > /dev/null
    command code $argv
  else
    command code .
  end
end

Fisher and Verman

Install Fisher fish-shell package manager:

curl -Lo ~/.config/fish/functions/fisher.fish --create-dirs https://git.io/fisher

Add Vermam version manager:

fisher i verman

Fix dock

By default the dock has a slight delay to show (when set to auto-hide), this will remove it.

defaults write com.apple.dock autohide-delay -int 0;
and defaults write com.apple.dock autohide-time-modifier -float 1.0;
and killall Dock

Update Ruby

brew install ruby

Update Git

brew install git
touch ~/.gitconfig
open -a TextEdit ~/.gitconfig

Add the following:

[user]
    name = Will Stone
    email = EMAIL
[push]
    default = simple
[alias]
    a = add
    cm = commit -m
    s = status
    p = push

Trash CLI

Easily move items to the trash from the command line, using trash filename. Website: github.com/ali-rantakari/trash

brew install trash

Fonts

brew tap caskroom/fonts
brew cask install font-hack

Install Yarn

brew install yarn

Brew Cask Apps

brew cask install alfred appcleaner bettertouchtool dropbox firefox google-chrome istat-menus qlmarkdown spotify telegram visual-studio-code

NB

App Store Apps