ConEmu - Tasks for different Ubuntu Distributions

588 Views Asked by At

I am opening in ConEmu my default WSL2 terminal with the task:

wsl.exe ~ -cur_console:pm:/mnt

Until now I had just one Linux Distribution in WSL2 - Ubuntu-18.04. Now I have the second machine on WSL2 - Ubuntu-20.04 which I set as default. ConEmu now opens the default Linux Distribution terminal. Is is possible to set another task which will open the second Linux Distribution Terminal, which is not set as default in Windows?

1

There are 1 best solutions below

2
On

ConEmu documentation already contains all required information: https://conemu.github.io/en/BashOnWindows.html#wsl-distro

  1. Find the name of your distribution in the registry under

    HKCU\Software\Microsoft\Windows\CurrentVersion\Lxss
    
  2. Modify task for your WSL by inserting directly after wsl.exe the --distribution <Name> without quotes. Example:

    wsl.exe --distribution Debian ~ -cur_console:pm:/mnt