Install zsh for git bash window
Instruction to install zsh for git bash in Window Terminal.
Install ZSH
Once Bash for Windows is set up, it is time to install ZSH:
Download the latest MSYS2 zsh package from the MSYS2 package repository. The file will be named
like: zsh-#.#-#-x86_64.pkg.tar.zst. You can find the latest version here.
1. Install zsh
Extract the contents of the zip file (which will include etc and usr directories) into your Git Bash
installation directory. This will be in C:\Program Files\Git.
2. Verify installation
zsh --version
3. Set ZSH as the Default Shell
After installation, set ZSH as your default shell by appending the following to
your C:\Users\<your user name>\.bashrc file:
if [ -t 1 ]; then
exec zsh
fialternative method: config terminal profile ![[gitbash-to-zsh-config.png]]
4. Fix Displaying of Unexpected Characters
Fix the displaying of garbled characters on terminal by appending this line in
your C:\Users\<your user name>\.bashrc file:
5. Install oh-my-zsh
6. Install Nerd font
Choose a nerd font you like and set for terminal. You can also install theme link powerlevel10k. But I live bare one.
Install plugin for zsh
zsh-auto-suggestions
zsh-syntax-highlighting
Add plugin
Last updated