My MacBook setup for web development includes tools like: Homebrew, Google Chrome, Visual Studio Code with Oh My Zsh, and Git.
Install Homebrew as a package manager for macOS:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"Update everything in Homebrew to the latest version:
brew updateInstall GUI applications (Homebrew formulae):
brew install --cask \
google-chrome \
visual-studio-codeInstall terminal applications:
brew install \
git \
nvmGoogle Chrome (browser): when I need to test something on Chromium.
Visual Studio Code (IDE): login with personal GitHub account.
Install Oh My Zsh for a better terminal experience:
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"Update everything in Oh My Zsh to the latest version:
omz updateImportant: If you change something in your Zsh configuration (.zshrc), you have to restart it:
source ~/.zshrcUse af-magic as a new theme for your terminal:
code ~/.zshrcChange the ZSH_THEME to af-magic: ZSH_THEME="af-magic".
Make it the default theme for Oh My Zsh:
echo 'eval "$(af-magic init zsh)"' >> ~/.zshrcUse zsh in Visual Studio Code:
- open
settings.jsonin VS Code by pressing⌘ + , - look to the right for a button to
Open Settings (JSON) - paste these
key/valuepairs:
"terminal.external.osxExec": "Terminal.app",
"terminal.integrated.defaultProfile.osx": "zsh",Zsh configuration file (.zshrc): copy and paste from the local file.
From the terminal, set the global name and email:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"Configure Git to use VS Code as default editor:
git config --global core.editor "code --wait"Print global git configuration:
git config --list