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
-
Install via official script
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" -
Configure theme
sed -i 's/robbyrussell/apple/g' ~/.zshrc -
Set up
zsh-syntax-highlightinggit 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
-
Download via
curlcurl -L "https://code.visualstudio.com/sha/download?build=stable&os=darwin-universal" -o ~/Downloads/vscode.zip -
Extract
unzip ~/Downloads/vscode.zip -
Install to Applications folder
mv "~/Downloads/Visual\ Studio\ Code.app" /Applications/ -
Add it to path
echo export PATH="'$PATH:/Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin'" >> ~/.zshrc