Maximus5 / ConEmu

Customizable Windows terminal with tabs, splits, quake-style, hotkeys and more
https://conemu.github.io/
BSD 3-Clause "New" or "Revised" License
8.55k stars 571 forks source link

CTRL+SHIFT+O/E commands don't duplicate a WSL2 prompt in the same directory #2333

Open mulcahey opened 3 years ago

mulcahey commented 3 years ago

Versions

ConEmu build: 210627 preview x64 OS version: Windows 10 Pro 19043.1052 x64 Used shell version: WSL2 (Ubuntu 20.04) ConEmu Settings xml: here

Problem description

In a Windows cmd prompt loaded inside ConEmu, I can navigate to a specific directory (e.g. cd \Users\me\Downloads), then use CTRL+SHIFT+O or CTRL+SHIFT+E to duplicate the current prompt in that same directory (\Users\me\Downloads). The same does not work for a WSL2 (Ubuntu 20.04) command prompt, as the newly-duplicated prompt will always start in my user's home directory.

Steps to reproduce

  1. In ConEmu, go to Settings > Startup > Tasks, and click 'Add/refresh default tasks'. This added {WSL2::Ubuntu-20.04} to the list of Predefined tasks.
  2. Select 'New Console Dialog' and select {WSL::Ubuntu-20.04}, which launches a new Ubuntu prompt in the user's home directory.
  3. Change the current directory (cd ~/Downloads/)
  4. Press CTRL+SHIFT+E to duplicate the Ubuntu prompt.

Actual results

The new prompt starts in the user's home directory again (~/)

Expected results

The new prompt should start in the same directory as the first prompt (~/Downloads/).