Install zsh for git bash window
Last updated
Last updated
Instruction to install zsh for git bash in Window Terminal.
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 .
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
.
zsh --version
After installation, set ZSH as your default shell by appending the following to
your C:\Users\<your user name>\.bashrc
file:
alternative method: config terminal profile ![[gitbash-to-zsh-config.png]]
Fix the displaying of garbled characters on terminal by appending this line in
your C:\Users\<your user name>\.bashrc
file:
Choose a nerd font you like and set for terminal. You can also install theme link powerlevel10k. But I live bare one.