This is what I came up with and it's working fine ``` function storePathForWindowsTerminal --on-variable PWD if test -n "$WT_SESSION" printf "\e]9;9;%s\e\\" (wslpath -w "$PWD") end end ``` --- #### Document Details ⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.* * ID: 439baddf-3ec9-a46e-1b6e-3ec47cbd1d4c * Version Independent ID: 439baddf-3ec9-a46e-1b6e-3ec47cbd1d4c * Content: [Opening a tab/pane in the same directory](https://docs.microsoft.com/en-us/windows/terminal/tutorials/new-tab-same-directory) * Content Source: [TerminalDocs/tutorials/new-tab-same-directory.md](https://github.com/MicrosoftDocs/terminal/blob/main/TerminalDocs/tutorials/new-tab-same-directory.md) * Product: **dev-environment** * Technology: **windows-terminal** * GitHub Login: @zadjii-msft * Microsoft Alias: **migrie**
Activity
mattwojo commentedon Jul 8, 2022
Thanks sinapis -- add in a394b14.
Appreciate the contribution!
Main > Live sync (#565)
Merge main > Live (#599)
Add Fish shell
Main > Live sync (#565)
Merge main > Live (#599)