Skip to content

Instantly share code, notes, and snippets.

@alinademi
Forked from webdevsuperfast/zsh.md
Created August 10, 2023 23:32
Show Gist options
  • Save alinademi/af7d01e63a10d4b1f6995baff6fa794a to your computer and use it in GitHub Desktop.
Save alinademi/af7d01e63a10d4b1f6995baff6fa794a 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