Need help with win-zsh?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

162 Stars 5 Forks GNU General Public License v2.0 35 Commits 1 Opened issues


A guide for setting up the nicest terminal Windows has ever had

Services available


Need anything else?

Contributors list

# 141,711
35 commits


A guide for setting up the nicest terminal Windows has ever had.

Yes, this is possible in Windows now.

This is my Windows Terminal app running oh-my-zsh with the powerlevel10k theme installed. I don't provide instructions on how to set this specific theme up, however the configuration tool that comes with powerlevel10k is fantastic and it's easy to get a terminal set up that looks and behaves as nicely as what I have here once you finish this guide.

What am I looking at?

Finally, it's possible to have a decent Win10 terminal.

In this guide, my intent is to install a

terminals onto a Windows 10 machine such that they:
  • Have easy access to the Windows filesystem
  • Run almost as fast as a native implementation
  • Have a good baseline vim config without additional work
  • Support copy/cut/paste with
    like normal
  • Depend on only software that I have used and know works well
  • Support colour themes to liven up your terminal!

I'm leaning on Microsoft's WSL install guide and it might be a valuable resource if you run into trouble. Also, this deep dive into WSL is very helpful if you want to get into the nitty gritty.

Phase 1: Ubuntu bash via WSL

In the first phase of this process, we're going to install Windows Subsystem of Linux and get Ubuntu up and running within our Windows install so we have access to a bash terminal. This is already great, but is only a first step toward better things.

You can install just WSL1 or upgrade to WSL2. I use the older WSL1 personally, because WSL1 offers better Windows filesystem performance and all the files I work on are on my Windows drive. However, WSL2 may perform better if you keep the files you work with on your Linux filesystem. See this comparison for more details. It is worth noting that it's possible to use both versions on the same machine, but that's beyond the scope of this guide.

  1. Open the Windows Store app and install the Ubuntu app by Canonical Group Limited. If the Windows Store isn't available to you, you can enable developer mode and manually install the Ubuntu 20.04 app from here.

  2. Open a Powershell terminal as Administrator.

  3. Run the following command in a PowerShell terminal to install WSL:

    dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
  4. If you want to upgrade to WSL2:

    1. Run the following command in a PowerShell terminal to install VM features you'll need:

      dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
    2. Download and install the WSL2 Linux kernel update from here.

    3. Run the following command in a PowerShell terminal to switch to WSL2 by default:

      wsl --set-default-version 2
  5. Reboot your computer. Yes, really.

  6. After rebooting, run the Ubuntu app to confirm that a bash terminal starts up. You may need to set a username & password for your Ubuntu user at this point.

  7. Run the following command at your Ubuntu bash terminal to create a symlink from your Ubuntu home (~) to your Windows user folder:

    ln -s ~/win10 /mnt/c/Users/
  8. Congratulations! You can use bash from Windows. It's not a trick or a hacky Windows implementation. Real Linux bash, with access to all the great tooling from the Ubuntu/Debian environment. The possibilities are endless! But we're only getting started...

Phase 2: New Windows Terminal

In the past, I used ConEmu or Cmder as a terminal app to centralize all of my terminals to one window. It's possible to run WSL terminals on apps such as these, but the setup is more complex than it needs to be. These days, the new Windows Terminal from Microsoft acts to merge all my terminals into one window and has out-of-the-box support for WSL and will run the Ubuntu bash terminal we installed above with zero configuration.

  1. Open the Windows Store app and install the Windows Terminal app by Microsoft. If the Windows Store isn't available to you, the Windows Terminal Github repo offers some other installation options to try.

  2. Run Windows Terminal. It should launch a PowerShell terminal by default, but the new terminal dropdown will include an option for

    . Open an
    terminal to launch your WSL Ubuntu bash from Phase 1 to confirm that everything is working so far.
  3. Open your Windows Terminal settings and compare them with settings.json in this repo. Feel free to copy my

    over your own (make sure that your profile
    fields don't get lost when you do) or take bits and pieces that make sense for you. Check out the documentation for more info about configuring Windows Terminal.
  4. Nice! All your terminal windows belong to a simple tabbed interface and you can get to Ubuntu bash easily. Now it's time to do what we all came here for...

Phase 3: Oh My Zsh

Here's the fun part. Let's get zsh installed and then spend hours fussing with it to make it pretty!

  1. Open a new

    tab in Windows Terminal.
  2. Run the following command at your

    terminal to install
    sudo apt-get install zsh
  3. Run the following command at your

    terminal to set
    as the default terminal.
    chsh -s $(which zsh)
  4. Open a new

    tab in Windows Terminal. You will be presented with the zsh setup wizard. I leave the details of this setup to you to figure out. It's your terminal!
  5. Once the zsh configurator is finished, you should be sitting on a zsh terminal. Run

    at the terminal and if
    is one of the active processes, then your're golden!
  6. Run the following command at your zsh terminal to install

    sh -c "$(curl -fsSL"
  7. If you want to install a terminal theme, you can choose from the available options then edit the value of the

    variable in your
    to the name of your chosen theme. There are even more available options but you'll need to download these separately to use them. I like powerlevel10k myself, but this is an exercise for the reader.
  8. Congratulations! You might just have the nicest terminal that's ever been available on a Windows machine! Time to install weird gizmos to impress your friends...

Finishing Touches

The instructions above cover the necessary steps to get zsh working and looking pretty, but there are some more things you might want to do to get the most out of this setup.

  • Set up your

    terminal as the default for new terminal windows in Windows Terminal by setting the
    to whatever the
    of your
    profile is.
  • Set your

    or a folder inside it so
    opens into the Windows filesystem by default. It's less confusing to keep my files there in the idiomatic Windows folders than inside the filesystem of my WSL Ubuntu disk (which is basically hidden in Windows).
  • Consider mapping

    as a network drive. This will allow you to quickly and easily navigate to your Ubuntu root folder (
    ) and find files from Windows. Just type
    into explorer, right-click on the Ubuntu folder, select
    Map network drive
    and pick your favourite letter for the drive.
  • Windows Terminal's settings allow you to set a colour theme that interferes with the colours of oh-my-zsh themes. You might need to fuss with these to get the best look. I haven't figured out how to guarantee that you're getting the colours that oh-my-zsh theme authors intended for their themes just yet.

  • Consider installing a nice monospace font for your new terminal. Here are a few recommendations:

  • Consider upgrading your WSL Ubuntu from 20.04 to 20.10. It really does open up some exciting new possiblities for what you can do with it (like some of the recommended tools below).

  • Consider adding some other spicy *nix tools to your Windows terminal:

    • bat is a more colourful and usable version of
    • exa is a more colourful and usable version of
    • fd is a more colourful and usable version of
    • httpie is a more colourful and usable version of
    • fzf is a powerful fuzzy-search tool. In particular, it supports keybinds such as
      to fuzzy search your command history or
      to fuzzy-find files recursively from your current folder.
  • I like to add the following lines to the end of my

    to automatically start up my SSH agent and install my SSH key so I can use Github via SSH without interruption:
    echo "Starting SSH agent..."
    eval $(ssh-agent -s)
    ssh-add ~/.ssh/
  • I'm annoyed by how my Windows Terminal

    copy/paste bindings collide with *nix commands and would love to have better suggestions. For example, in vim
    enters visual mode but Windows Terminal's
    bind seems run the equivalent of
    in vim (delete the current character and replace it with the copied text) which prevents you from entering visual mode entirely and unexpectedly changes your document.
  • While I don't use PowerShell that much personally, PowerLine seems like a promising tool to bring similar terminal theming to that of oh-my-zsh with powerlevel10k to PowerShell. Check that out if you're a regular PowerShell user.


I'm offering this guide without warranty and I realize that eventually it will become obsolete somehow, so if you run into trouble I can't guarantee that I can help. That being said, I encourage people to post issues on this repo if you encounter problems or even if you just think something could be configured better or explained more easily. Please share your experience so I can attempt to make this guide better and learn from you.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.