A macOS setup guide specific to front-end development.
For a guided setup, open up Terminal.app and run the following command:
- Save repo to
~/Downloadsfolder:git clone https://github.com/michaelschwobe/mac-dev-setup.git ~/Downloads/mac-dev-setup && \ cd ~/Downloads/mac-dev-setup/scripts
- Run the installer script (rerun as many times as needed).
OR Run the installer scripts individually:
sh install.sh
sh defaults.sh sh tools.sh sh casks.sh sh optimizations.sh sh summary.sh
✨ And thats it! No need to do anything further.
For those who prefer à la carte, this section contains everything that the Guided Setup attempts to do, except for IDE customization.
defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}' && \
defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}' && \
defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}' && \
killall Dockdefaults write com.apple.dock autohide -boolean true && \
killall DockDisplay hidden Finder files/folders:
defaults write com.apple.finder AppleShowAllFiles -boolean true && \
killall Findermkdir -p ~/Developerxcode-select --installInstalling brew (Homebrew):
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" && \
brew doctorInstall watchman:
brew install watchmanInstall trash:
brew install trashInstall git:
brew install gitInstall git-flow:
brew install git-flowInstall zsh:
brew install zshInstall oh-my-zsh:
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"Install powerlevel10k (CLI theming):
brew install romkatv/powerlevel10k/powerlevel10k && \
echo '# Theme configuration: PowerLevel10K' >>! ~/.zshrc && \
echo 'source /usr/local/opt/powerlevel10k/powerlevel10k.zsh-theme' >>! ~/.zshrc && \
echo '# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.' >>! ~/.zshrc && \
echo '[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh' >>! ~/.zshrcRestart you’re CLI for this to take effect, or run:
p10k configureInstall zsh-autosuggestions:
brew install zsh-autosuggestions && \
echo "# Fish shell-like fast/unobtrusive autosuggestions for Zsh." >> ~/.zshrc && \
echo "source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh" >> ~/.zshrcRestart you’re CLI for this to take effect.
Install zsh-syntax-highlighting:
brew install zsh-syntax-highlighting && \
echo "# Fish shell-like syntax highlighting for Zsh." >> ~/.zshrc && \
echo "# Warning: Must be last sourced!" >> ~/.zshrc && \
echo "source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ~/.zshrcRestart you’re CLI for this to take effect.
Note the source command must be at the end of ~/.zshrc.
brew install nodeInstall n (Node via n):
brew install nInstall nvm (Node via nvm):
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bashInstall yarn:
brew install yarnUpgrade npm:
npm i -g npm@latestInstall/Upgrade serve (globally via npm):
npm i -g serve@latestbrew install --cask 1passwordbrew install --cask brave-browserbrew install --cask diffmergebrew install --cask discordbrew install --cask figmabrew install --cask google-chromebrew install --cask insomniabrew install --cask iterm2- Copy my iTerm settings:
cp ~/Downloads/mac-dev-setup/.zshrc ~/
- Restart iTerm and resolve any remaining issues.
brew install --cask rectanglebrew install --cask slackbrew install --cask sourcetreebrew install --cask spotifybrew install --cask visual-studio-code- Install my Extensions:
code --install-extension alefragnani.project-manager code --install-extension atomiks.moonlight code --install-extension christian-kohler.npm-intellisense code --install-extension christian-kohler.path-intellisense code --install-extension CoenraadS.bracket-pair-colorizer code --install-extension dbaeumer.vscode-eslint code --install-extension dsznajder.es7-react-js-snippets code --install-extension eamodio.gitlens code --install-extension EditorConfig.EditorConfig code --install-extension eg2.vscode-npm-script code --install-extension esbenp.prettier-vscode code --install-extension formulahendry.auto-rename-tag code --install-extension Gruntfuggly.todo-tree code --install-extension johnpapa.vscode-peacock code --install-extension JuanBlanco.solidity code --install-extension mikestead.dotenv code --install-extension ms-vscode.sublime-keybindings code --install-extension Prisma.prisma code --install-extension stylelint.vscode-stylelint code --install-extension Tyriar.sort-lines code --install-extension vscode-icons-team.vscode-icons code --install-extension wix.vscode-import-cost code --install-extension Zignd.html-css-class-completion
- Copy my Visual Studio Code User settings:
cp ~/Downloads/mac-dev-setup/Code/* ~/Library/Application\ Support/Code/User
- Restart Visual Studio Code and resolve any remaining issues.
brew install --cask zoomdefaults write com.apple.dock ResetLaunchPad -boolean true; killall DockUpdating oh-my-zsh:
omz updateOptimizing Homebrew:
brew update && brew upgrade && brew doctor && brew cleanup