DEV Community

Cover image for WSL2, zsh, and docker. Linux through Windows.

WSL2, zsh, and docker. Linux through Windows.

Nicky Meuleman on June 15, 2019

Compromises are great. When it comes to technology, having your cake and eating it too is better. The machine I normally use for development broke...
Collapse
 
mhsangar profile image
Mario Sánchez García • Edited

Hi Nick!

Thanks a lot for the article, I've been following all the steps and I finally made it to the end 🎉🎉 I used Oh My Zsh before with the agnoster theme, so I decided to change it to powerline-go. You need Go in order to use it, but it's looks awesome 🙏

Here is the final result:

Preview of final result

Collapse
 
therakesh profile image
Rakesh Mandal 🗯️

Hi, this looks cool. Could you please show me the step to config it (powerline-go)? I'm a bit confused here.

Help appreciated

Collapse
 
nickymeuleman profile image
Nicky Meuleman

Hi Mario
Yay 🎉! That looks very nice! Lots of useful info displayed! (love the directory name btw)

Collapse
 
pellea profile image
Adrien Pellegrini

Nice article!

If you want to make it works in a "normal" console, you can install the Fira Code font (github.com/tonsky/FiraCode) and use it in the new Windows Terminal. It works fine with that font.

The only issue I have is that the git plugin is super slow with zsh.

Collapse
 
nickymeuleman profile image
Nicky Meuleman

Thank you!

That font is very nice. Using it as main editor font. Really liking the ligatures it has.

Collapse
 
giorgiobertolotti profile image
Giorgio Bertolotti

I'm using the z plugin since I read this article and I'm in love, thanks! ❤️

Collapse
 
elanhasson profile image
Elan Hasson • Edited

In VS Code, which font name should go here?
vs code settings

Collapse
 
elanhasson profile image
Elan Hasson • Edited

You have to put ProFont for Powerline Regular as the font there. You also need to set that Fira Code font in the Windows Terminal config.

Collapse
 
nickymeuleman profile image
Nicky Meuleman

You got it!

Hope you are liking the setup.

Collapse
 
_hs_ profile image
HS

These:
"
wsl --list --verbose

or

wsl -l -v
"
are not available in version 1 and won't work but it's an indicator that it's not v2

Collapse
 
nickymeuleman profile image
Nicky Meuleman

Good observation!

You'll need Windows build 18917 for those arguments to work, the build needed to make using WSL2 possible.
docs.microsoft.com/en-us/windows/w...