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

WSL restore opened tabs #2336

Open vaggelanos opened 3 years ago

vaggelanos commented 3 years ago

Versions

ConEmu build: 210627 x64 OS version: Windows 20H2 x64 Used shell version (Far Manager, git-bash, cmd, powershell, cygwin, whatever): WSL

Problem description

I am using WSL (debian) with zsh as default shell. I managed to get the tab template %d to work as you can see in the screenshot.

Capture

The task i am using:

set "PATH=%ConEmuBaseDirShort%\wsl;%PATH%" & %ConEmuBaseDirShort%\conemu-cyg-64.exe %ConEmuBaseDirShort%\wsl\wslbridge2.exe -W ~ -cur_console:ph:0m:/mnt -eConEmuBuild -eConEmuPID -eConEmuServerPID -l

This is the saved tasks to restore

Capture2

From my understanding the -cur_console:d cannot cd to guest machine directory

Is there a way to get this to work?

I have tried various versions of wsl tasks found in issues and on docs (without the wslbridge etc etc) with same result.

Steps to reproduce

  1. Setup WSL
  2. Setup zsh
  3. Set PS1 with cwd pointing on pwd

Actual results

When i try to duplicate a tab or restore a tab session i get this error:

Capture3

Expected results

Restore tab with previous state of pwd

Additional files

I can provide my zsh setup if needed

Thanks for this awesome terminal emulator