-
Start the terminal and make
zshthe default shell- Run
zsh --versionin your terminal to determine if you already havezshinstalled- If you do:
- Run
chsh -s $(which zsh) - Restart the terminal (or log out and back into your computer)
- Move on to step 2
- Run
- If not, you'll need to install it by following the OS specific instructions below:
- Linux
sudo apt-get install zshchsh -s $(which zsh)- Restart the terminal (or log out and log back in to your computer)
- MacOS
- Install Homebrew with
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" - Verify it is setup correctly with
brew doctor - You will be requested to install the Command Line Developer Tools from Apple. Confirm by clicking Install. After the installation finished, continue installing Homebrew by hitting Return again.
- Install zsh with
brew install zsh - Make it the default shell:
sudo sh -c "echo $(which zsh) >> /etc/shells" && chsh -s $(which zsh) - Restart the terminal (or log out and log back in to your computer)
- Install Homebrew with
- Linux
- If you do:
- Run
-
Open a terminal and if you are prompted to make a choice, choose
q. -
Install oh-my-zsh from inside the terminal
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"- Restart the terminal
-
Install VS Code if it isn't already installed
-
In your terminal, open VS Code with
code . -
Install the following VS Code extensions
- ESLint
- Live Share (online students only)
- vscode-icons (optional, but pretty 😉)
- Bracket Pair Colorizer (optional)
- GitLens (optional)
-
Install nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
-
Move the 3 nvm lines from the bottom of
~/.bash_profile(or if they aren't there, check out~/.bashrc) to the bottom of~/.zshrc -
Change the oh-my-zsh theme at the top of the
.zshrcfile frombobbyrusselltobira. -
nvm install --lts -
Enable the automatic fixing of linting errors on file save by adding this to your
settings.json. In VS Code, click the settings cog button in the bottom left and open the Command Palette. Type insettings.jsonand click on the 'Preferences: Open Settings (JSON)' option. Paste in these contents."editor.codeActionsOnSave": { "source.fixAll.eslint": true }