Default target directory should be current working directory, same as "cmd" #8544

Closed
opened 2026-01-31 01:32:06 +00:00 by claunia · 5 comments
Owner

Originally created by @muhammad-usman-anwar on GitHub (May 24, 2020).

Default target directory should be current working directory, same as cmd. Currently when opened from other terminal or from explorer its target directory is default home directory of current user.

This is how "cmd" behaves

Screenshot (20)
Screenshot (21)

This is how "terminal" behaves

Screenshot (22)
Screenshot (23)

Have to pass command line arguments to achieve same behavior, wt -d .. It would be great to have it behave like cmd.

Originally created by @muhammad-usman-anwar on GitHub (May 24, 2020). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> Default target directory should be current working directory, same as __cmd__. Currently when opened from other __terminal__ or from __explorer__ its target directory is default home directory of current user. ## This is how "cmd" behaves ![Screenshot (20)](https://user-images.githubusercontent.com/46624268/82749671-3fef0000-9dc4-11ea-99f3-413879dba61f.png) ![Screenshot (21)](https://user-images.githubusercontent.com/46624268/82749674-441b1d80-9dc4-11ea-8815-a8f43d9dfd88.png) ## This is how "terminal" behaves ![Screenshot (22)](https://user-images.githubusercontent.com/46624268/82749729-aaa03b80-9dc4-11ea-8cb2-0f2a00ac8311.png) ![Screenshot (23)](https://user-images.githubusercontent.com/46624268/82749715-92c8b780-9dc4-11ea-81c2-37f021f17847.png) Have to pass command line arguments to achieve same behavior, `wt -d .`. It would be great to have it behave like __cmd__.
claunia added the Issue-FeatureResolution-Duplicate labels 2026-01-31 01:32:06 +00:00
Author
Owner

@j4james commented on GitHub (May 24, 2020):

This issue has been raised before. I believe wt -d . is the recommended way to make this work. See issue https://github.com/microsoft/terminal/issues/878#issuecomment-579508860.

@j4james commented on GitHub (May 24, 2020): This issue has been raised before. I believe `wt -d .` is the recommended way to make this work. See issue https://github.com/microsoft/terminal/issues/878#issuecomment-579508860.
Author
Owner

@muhammad-usman-anwar commented on GitHub (May 24, 2020):

I know this and mentioned it myself. But It would be great if it does automatically.

@muhammad-usman-anwar commented on GitHub (May 24, 2020): I know this and mentioned it myself. But It would be great if it does automatically.
Author
Owner

@j4james commented on GitHub (May 24, 2020):

Yeah, I'm just telling you that what you're doing is the recommended approach. This issue has been raised many times before, and the answer is always that you need to use the method you're already using. See #4287, #4330, #4647, #4787, #4936, #5220, #5796, #6031, and #6132.

@j4james commented on GitHub (May 24, 2020): Yeah, I'm just telling you that what you're doing is the recommended approach. This issue has been raised many times before, and the answer is always that you need to use the method you're already using. See #4287, #4330, #4647, #4787, #4936, #5220, #5796, #6031, and #6132.
Author
Owner

@zadjii-msft commented on GitHub (May 26, 2020):

Yea, I think I'm going to resolve this one as a dupe. Thanks for triaging @j4james!

/dup #878, #4287, #4330, #4647, #4787, #4936, #5220, #5796, #6031, and #6132.

@zadjii-msft commented on GitHub (May 26, 2020): Yea, I think I'm going to resolve this one as a dupe. Thanks for triaging @j4james! /dup #878, #4287, #4330, #4647, #4787, #4936, #5220, #5796, #6031, and #6132.
Author
Owner

@ghost commented on GitHub (May 26, 2020):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (May 26, 2020): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#8544