Opening new Terminal in same directory as current terminal #14466

Closed
opened 2026-01-31 04:11:06 +00:00 by claunia · 2 comments
Owner

Originally created by @ShivKJ on GitHub (Jul 11, 2021).

Hi,

I am currently using Windows Terminal and have added Ubuntu 20.04 in it.

Now suppose I have opened a Ubuntu terminal and want to open a new tab in the terminal such that the current dir on the created tab is the same as that of the current tab.

Let me know how can we do that?

Have tried setting startingDirectory value (in settings.py) to null, "." etc. but nothing works.

Originally created by @ShivKJ on GitHub (Jul 11, 2021). Hi, I am currently using Windows Terminal and have added Ubuntu 20.04 in it. Now suppose I have opened a Ubuntu terminal and want to open a new tab in the terminal such that the current dir on the created tab is the same as that of the current tab. Let me know how can we do that? Have tried setting _startingDirectory_ value (in settings.py) to `null`, `"."` etc. but nothing works.
claunia added the Issue-FeatureNeeds-TriageNeeds-Tag-Fix labels 2026-01-31 04:11:06 +00:00
Author
Owner

@LuanVSO commented on GitHub (Jul 11, 2021):

there's a lot of guides on how to do it on #3158.
put this on a file and then source it from .bashrc or .zshrc:
https://gist.github.com/LuanVSO/5fa3a7f0df339d8dc5166865df18527f
after that restart your shell and if you press ctrl+shift+D to duplicate the tab it will keep the same directory.

@LuanVSO commented on GitHub (Jul 11, 2021): there's a lot of guides on how to do it on #3158. put this on a file and then source it from .bashrc or .zshrc: https://gist.github.com/LuanVSO/5fa3a7f0df339d8dc5166865df18527f after that restart your shell and if you press ctrl+shift+D to duplicate the tab it will keep the same directory.
Author
Owner

@skyline75489 commented on GitHub (Jul 11, 2021):

See https://github.com/microsoft/terminal/issues/10105#issuecomment-842231981

@skyline75489 commented on GitHub (Jul 11, 2021): See https://github.com/microsoft/terminal/issues/10105#issuecomment-842231981
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#14466