macOS Out-of-the-Box Experience

Convenience Script

Static file: /static/scripts/macbook-oobe.sh

(curl -fSsl https://script.aaanh.app/static/scripts/macbook-oobe.sh >> macbook-oobe.sh && chmod 700 macbook-oobe.sh && bash macbook-oobe.sh && rm macbook-oobe.sh)

Manual

Set up homebrew

This also installs xcode command line tools

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Set up oh-my-zsh

  1. Install via official script

    sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
    
  2. Configure theme

    sed -i 's/robbyrussell/apple/g' ~/.zshrc
    
  3. Set up zsh-syntax-highlighting

    git clone https://github.com/zsh-users/zsh-syntax-highlighting.git "$HOME/.zsh-syntax-highlighting" --depth 1
    echo "source $HOME/.zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> "$HOME/.zshrc"
    

Install VS Code

  1. Download via curl

    curl -L "https://code.visualstudio.com/sha/download?build=stable&os=darwin-universal" -o ~/Downloads/vscode.zip
    
  2. Extract

    unzip ~/Downloads/vscode.zip
    
  3. Install to Applications folder

    mv "~/Downloads/Visual\ Studio\ Code.app" /Applications/
    
  4. Add it to path

    echo export PATH="'$PATH:/Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin'" >> ~/.zshrc