How to setup a nice looking terminal with WSL in Windows 10 Creators Update

Andreas Johansson
Apr 16, 2017 · 3 min read

Tutorial on how to get a nice looking terminal like this

Image for post
Image for post
Beautiful terminal

instead of just bash in the usual cmd.exe window like this

Image for post
Image for post
Ugly terminal

Start by making sure that you have installed WSL according to these instructions:

Now, you should be able to launch bash by starting cmd.exe and typing


From here you can do all the normal terminal stuff like ls, but as you see, the colors aren’t really that exciting. Actually, they are quite hard to see.

Image for post
Image for post
Very straining on the eyes

To fix this, download this software:

This terminal emulator fixes some great things about the default Windows terminal, including adding support for color themes. Open the terminal, right click on top and go to Options, Looks and finally change the Theme. Here you can choose whichever one you feel like, but base16-solarized-dark.minttyrc is the one I prefer.

Image for post
Image for post
Ok, not very readable, but at least prettier

Now, lets get on to improve the shell. This great tutorial explains how to install Zsh:

Let’s take it one step further and install Oh-my-zsh to improve shell functionality even further! Use this great guide for that:

Now, I prefer to use the Agnoster theme, but as you see, without the correct fonts this looks pretty bad.

Image for post
Image for post
Broken font

Easy peasy, just hop over to and download whatever font you want. I use the DejaVuSansMono for Powerline font, which you can get here:

Just download the ttf file that you want and double click to install. Then change the font in wsl-terminal to whichever one you chose. The terminal should now look something like this:

Image for post
Image for post
The prompt looks so good! Right?

Ok, prompt is fine, but we need to do something about the colors in ls. So let’s hop over to and download or clone the repository.

Now, to your .zshrc file (which you changed when chose what theme to use), simply add this line:

eval `dircolors ~/Git/dircolors-solarized/dircolors.256dark`

The path should of course correspond to the actual location where you downloaded the repository to. Now when you start your terminal and run ls, it should look something like this:

Image for post
Image for post
Sleak terminal

One last thing, because WSL makes all windows files executable and because ls colors executable files in a specific color regardless of filetype, the coloring is not perfect when looking at windows files. I have not figured out a way to solve this that doesn’t involve recompiling ls. So my solution was simply to change the row in dircolors.256dark that reads

EXEC 00;38;5;64


EXEC 00;38;5;244

It’s not perfect, but it makes the output slightly nicer to look at.

If you have any questions, thoughts or suggestions on how to make this better, please leave a comment!

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store