Oh My Zsh on Windows

Oh My Zsh is built for Unix-like systems, so it does not run directly in PowerShell or Command Prompt. The supported route on Windows is WSL 2, which gives you a real Linux environment. Here is the full setup.

Windows Terminal connected to Ubuntu through WSL 2 with an Oh My Zsh command prompt

Why you need WSL on Windows

Oh My Zsh is a framework for the Zsh shell, which is a Unix shell. Windows' own shells (PowerShell and CMD) are different programs, so Oh My Zsh cannot be installed into them. The project's README lists Windows support via WSL2, the Windows Subsystem for Linux, which runs a genuine Linux distribution alongside Windows.

Looking for a nicer PowerShell prompt instead? That is a different tool called Oh My Posh. It is not related to Oh My Zsh.

Step 1: Install WSL and Ubuntu

Open PowerShell as Administrator and run:

wsl --install

On current versions of Windows 10 and Windows 11 this enables WSL and installs Ubuntu by default. Restart when prompted, then open Ubuntu from the Start menu and create a Linux username and password. If WSL is already installed, you can list other distributions with wsl --list --online.

Step 2: Install Zsh, Git and curl inside Ubuntu

sudo apt update
sudo apt install zsh git curl -y

Check that Zsh installed correctly:

zsh --version

Step 3: Install the Framework

Run the official installer inside your Ubuntu terminal:

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

When asked whether to change your default shell to Zsh, answer yes. If you skipped it, run:

chsh -s $(which zsh)

Close and reopen the Ubuntu terminal. You should now see the default robbyrussell prompt. Prefer to inspect the code first? You can use the source ZIP download instead.

Step 4: Make Ubuntu your default in Windows Terminal

Windows Terminal is the most comfortable way to use WSL. Open it, go to Settings > Startup > Default profile, choose your Ubuntu profile and save. New tabs will open straight into Zsh.

Step 5: Install a Nerd Font on Windows

Themes like agnoster and Powerlevel10k need icon fonts. The important detail: text is drawn by Windows Terminal, so install the font on Windows, not inside Ubuntu. Then open Windows Terminal settings, select the Ubuntu profile, go to Appearance and choose the font. See the Powerlevel10k guide for the recommended font.

Step 6: Use it in VS Code

Install the WSL extension in Visual Studio Code, then open a folder inside WSL by running code . from your Ubuntu terminal. The integrated terminal will use your Linux shell, including Oh My Zsh. Remember to set the terminal font in VS Code's settings if your theme uses icons.

Performance tip: keep projects in Linux

File access across the Windows and Linux boundary (for example under /mnt/c/) is slower in WSL 2. Git-aware prompts check the repository every time the prompt draws, so working in folders under your Linux home directory (~/) usually feels much faster.

What about Git Bash, Cygwin or MSYS2?

Some people run Zsh in Cygwin or MSYS2-based environments, but these are not the supported path and behaviour can differ. For a reliable experience, use WSL 2.

Next steps

Pick a look in our themes guide, add useful plugins, and if anything misbehaves, check the troubleshooting guide. The Ubuntu-specific steps are also covered in How to install Oh My Zsh on Ubuntu.

Understand the Windows and Linux boundary

On Windows, Oh My Zsh operates within a Unix-like shell environment provided by WSL, not as a replacement for PowerShell or Command Prompt. That distinction explains several common setup mistakes. Install Zsh, Git and the framework inside the chosen Linux distribution, then configure Windows Terminal to launch that distribution. Windows Terminal is the visual host; Ubuntu runs the shell and the Oh My Zsh configuration. Treat the Linux home directory as the primary location for shell configuration instead of trying to place ~/.zshrc in a Windows user profile. Keeping those responsibilities separate makes problems much easier to diagnose.

The two file systems are connected, but they have different performance characteristics and permission models. Repositories containing thousands of small files generally behave more predictably when kept inside the WSL Linux file system rather than under a mounted Windows drive. Open those projects through WSL-aware development tools, and avoid maintaining duplicate copies of the same repository on both sides. When you must access Windows files, pay attention to quoting, path translation and filename case. These habits reduce avoidable confusion in scripts and version-control operations.

Create a comfortable development environment

After the installation succeeds, customise the terminal profile deliberately. Choose a font that supports the symbols used by your preferred theme, set a readable font size and check that colours remain legible on your display. Make the Ubuntu profile easy to identify and consider a different colour treatment for administrative or remote sessions. If you use a graphical editor with WSL support, launch projects from the Linux environment so the editor and command-line tools see a consistent filesystem and toolchain. This arrangement is particularly valuable for Node, Python and container-centred workflows.

Keep Windows updates, WSL updates and Linux package updates conceptually distinct. A framework update does not upgrade the underlying Ubuntu installation, while changing the distribution version does not automatically repair third-party shell configuration. Before making broad changes, save ~/.zshrc and any custom theme files. If a new plugin behaves unexpectedly, temporarily disable it and start a new shell rather than reinstalling the entire distribution. WSL can serve as a productive primary terminal when maintenance is treated as a routine engineering responsibility.

Troubleshooting without guesswork

When a command fails, identify the layer in which the failure occurs. If Windows Terminal cannot open Ubuntu, test the WSL installation first. If Ubuntu opens but Zsh does not, verify the installed shell and default-shell settings inside Linux. If Zsh starts but the prompt looks wrong, inspect the terminal font and ~/.zshrc configuration. This layered approach prevents one symptom from triggering unnecessary system-wide repairs. For additional confidence, maintain a small checklist of installed command-line tools, the selected Ubuntu distribution and the configuration files you have customised.

Conclusion

Oh My Zsh works best on Windows when the relationship between Windows Terminal, WSL and the Linux shell is clear. Install and maintain the framework inside the Linux distribution, render it with an appropriate Windows font and keep development files where the Linux toolchain works efficiently. By distinguishing configuration, filesystem and platform issues, you can build an elegant, stable terminal experience without introducing unnecessary complexity into your Windows workflow.