Skip to content

Instantly share code, notes, and snippets.

@webdevsuperfast
Last active April 20, 2024 21:48
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save webdevsuperfast/7f250266cfdaf9ac50670be95a3e5749 to your computer and use it in GitHub Desktop.
Save webdevsuperfast/7f250266cfdaf9ac50670be95a3e5749 to your computer and use it in GitHub Desktop.
Install ZSH using Homebrew and set as default shell in Linux/WSL

Install ZSH via HomeBrew

brew install zsh

Add ZSH to /etc/shells

echo $(which zsh) | sudo tee -a /etc/shells

Set ZSH as default user shell

sudo chsh -s $(which zsh) $USER

Execute Shell or just restart terminal to take effect

exec $SHELL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment