You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The tutorial here https://learn.microsoft.com/en-us/windows/terminal/tutorials/new-tab-same-directory specifically for the WSL bash setup doesn't allow you to duplicate the terminal window in the CWD. I've tried a few things. Adding this to the .bash_profile PROMPT_COMMAND=${PROMPT_COMMAND:+"$PROMPT_COMMAND; "}'printf "\e]9;9;%s\e\\" "$(wslpath -w "$PWD")"'
The only thing I get is a colorless prompt which is not in the directory being duplicated. If I add this to the bottom of my .bash_rc I get no change to the behavior of bash. Any updates or changes would be greatly appreciated!
Type of issue
Code doesn't work
Feedback
The tutorial here https://learn.microsoft.com/en-us/windows/terminal/tutorials/new-tab-same-directory specifically for the WSL bash setup doesn't allow you to duplicate the terminal window in the CWD. I've tried a few things. Adding this to the .bash_profile
PROMPT_COMMAND=${PROMPT_COMMAND:+"$PROMPT_COMMAND; "}'printf "\e]9;9;%s\e\\" "$(wslpath -w "$PWD")"'
The only thing I get is a colorless prompt which is not in the directory being duplicated. If I add this to the bottom of my .bash_rc I get no change to the behavior of bash. Any updates or changes would be greatly appreciated!
Page URL
https://learn.microsoft.com/en-us/windows/terminal/tutorials/new-tab-same-directory
Content source URL
https://github.com/MicrosoftDocs/terminal/blob/main/TerminalDocs/tutorials/new-tab-same-directory.md
Author
@zadjii-msft
Document Id
439baddf-3ec9-a46e-1b6e-3ec47cbd1d4c
The text was updated successfully, but these errors were encountered: