I recently had to set up a new Windows 11 environment and decided to document the steps needed to install Zsh since I will inevitably forget the next time this happens:
- Install git bash and note the installation directory
(C:/Program Files/Git). - Download zsh and extract the
andetc/
directories into the installedusr/
directory. Note: Windows 11 supports Zstandard decompression so there's no longer a need to use other archive software.Git - Add the following to
in the user home directory:.bashrcif [ -t 1 ]; then exec zsh fi
- Install oh-my-zsh.
- Install Windows Terminal Preview and set it as the default terminal in its settings with git bash as the default profile.
- Install the Cascadia Code font that includes a native Nerd Font so that all fonts in Zsh themes like Powerline10k show correctly.