How to restore the last opened directories? #18461

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

Originally created by @haquocviet on GitHub (Sep 14, 2022).

I am using WT 1.16 on Windows 10.0.19044.1889.
Though I choose "Open windows from a previous session" in settings, after restarting the WT, the tabs (of Command Prompt) are restored all to the same starting directory but not the previous opened directories.
Do I miss something in the setting?

Originally created by @haquocviet on GitHub (Sep 14, 2022). I am using WT 1.16 on Windows 10.0.19044.1889. Though I choose "Open windows from a previous session" in settings, after restarting the WT, the tabs (of Command Prompt) are restored all to the same starting directory but not the previous opened directories. Do I miss something in the setting?
claunia added the Needs-TriageNeeds-Tag-FixNeeds-Attention labels 2026-01-31 06:14:48 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Sep 14, 2022):

Did you configure your shell to tell the Terminal what the CWD is/?

Refer to: Opening a tab or pane in the same directory in Windows Terminal

@zadjii-msft commented on GitHub (Sep 14, 2022): Did you configure your shell to tell the Terminal what the CWD is/? Refer to: [Opening a tab or pane in the same directory in Windows Terminal](https://docs.microsoft.com/en-us/windows/terminal/tutorials/new-tab-same-directory)
Author
Owner

@haquocviet commented on GitHub (Sep 14, 2022):

Oh it works after I followed the link.
Thank you @zadjii-msft

@haquocviet commented on GitHub (Sep 14, 2022): Oh it works after I followed the link. Thank you @zadjii-msft
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#18461