Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opening a tab or pane in the same directory in Windows Terminal #798

Open
Deetss opened this issue Sep 23, 2024 · 0 comments
Open

Opening a tab or pane in the same directory in Windows Terminal #798

Deetss opened this issue Sep 23, 2024 · 0 comments
Assignees

Comments

@Deetss
Copy link

Deetss commented Sep 23, 2024

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

@nguyen-dows nguyen-dows self-assigned this Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants