Wsl_Folder

WSL

Open in Linux subsystem

I'm on Windows 10 Home with May Update and have Ubunto 18.04 for WSL installed, I can open the console in any folder with Shift + Right Click and selecting the Open Linux shell here option

Shift + Right Click -> Open Linux shell

Source

Command Line

Open in your designated file path and run the command

ubuntu run

Which will open the ubuntu WSL in that specific folder.

WSL to Windows

If you're in specific file path and you just need to view that directory or workspace in GUI.

You could utilize this command and it will directly open up the $pwd path in your file explorer.

explorer.exe .

Source

Or if you need VS Code to open up a project.

code .

Windows Path

You can set path on default shell

By this I can open a specific $pwd in explorer to view it So when we enter open .`` it would internally convert that syntax toexplorer.exe .`` Pretty sweet Window to Unix support Header bridge.

open .

Stack Overflow Link

ZSH on Windows

How to install 'zsh' in windows 10 WSL subsystem & it also shares proper screenshots along the guide. Very easy to follow - Link

NPM on WSL Ubuntu

GitHub Gist

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.0/install.sh | bash

Restart your terminal after install.

NVM ZSH config

And for my ZSH environment setup, I had to link nvm directory using these two commands in my .zshrc file

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm

Installing the LTS version using node version manager

nvm install --lts

Using the LTS version using node version manager

nvm use --lts

You can also add this command to the end of your ZSH config file:

echo "nvm use --lts" >> ~/.zshrc