Is there a way to have wsl Ubuntu open in the current directory I am working in? I’ve tried various commands I found on google but they aren’t able to open in the current directory.
It may not be possible but I just wanted to ask, thank you for your time!
First, in case you have multiple wsl distributions installed, you need to find the name of the one you want to use.
In a dos window, type wsl -l, so it gives you the names of the installed wsl distributions :
B:\Local Downloads>wsl -l
Distributions du sous-système Windows pour Linux :
Debian (par défaut)
Ubuntu-24.04
Ubuntu-20.04
Ubuntu-18.04
Say, you want to use Ubuntu 24.04, you then go, in Opus, to Settings / Customize and head to the Context menus tab. Here, double-click Folders background / Folders :
Once the default menu is opened, locate the place you want to add this new item in the menu, and right-click on the item before it, and create a new button.
You can also make a button (or menu item, hotkey, etc.) which runs this command:
CLI DOSPROMPT=wsl
If multiple WSL distributions are installed, it will use the default one, unless overridden via Preferences / Miscellaneous / Advanced: [Behavior] wsl_distribution.