Reinstalling macOS

Setting-up a Mac for web development

31st October, 2017

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 in ~/.config/fish/functions/ls.fish

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

Copy/paste the following and save

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

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-source-code-pro

Brew Cask Apps

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

NB

  • bettertouchtool preferences are stored in Dropbox
  • visual-studio-code install sync-settings extension
  • istat-menus preferences are stored in Dropbox

App Store Apps

  • Affinity Designer
  • Bear
  • DaisyDisk
  • Pixelmator
  • Wunderlist

If you would like to comment on this post, feel free to tweet me @will_stone_