Set current directory when launched from windows explorer address bar. #13216

Closed
opened 2026-01-31 03:36:52 +00:00 by claunia · 2 comments
Owner

Originally created by @Giorgi on GitHub (Mar 27, 2021).

Description of the new feature/enhancement

When terminal is launched by typing wt in the Windows Explorer address bar the current directory is set to %HOMEPATH% instead of the directory that it was launched from. If you do the same by typing cmd it will launch cmd with the current directory set correctly.

CMD:

image

WT:

image

Originally created by @Giorgi on GitHub (Mar 27, 2021). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 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! --> # Description of the new feature/enhancement When terminal is launched by typing wt in the Windows Explorer address bar the current directory is set to %HOMEPATH% instead of the directory that it was launched from. If you do the same by typing cmd it will launch cmd with the current directory set correctly. CMD: ![image](https://user-images.githubusercontent.com/580749/112734653-8a9b5480-8f60-11eb-9555-3f3a138eedff.png) WT: ![image](https://user-images.githubusercontent.com/580749/112734659-9e46bb00-8f60-11eb-9a67-f91a69be45ab.png)
claunia added the Issue-FeatureNeeds-TriageNeeds-Tag-Fix labels 2026-01-31 03:36:52 +00:00
Author
Owner

@Giorgi commented on GitHub (Mar 27, 2021):

Works for PowerShell too:

image

@Giorgi commented on GitHub (Mar 27, 2021): Works for PowerShell too: ![image](https://user-images.githubusercontent.com/580749/112734882-e2868b00-8f61-11eb-8121-a3812df4c8bb.png)
Author
Owner

@j4james commented on GitHub (Mar 27, 2021):

The recommended way to make this work is by entering wt -d . in the explorer bar. For more info see #878 (comment).

@j4james commented on GitHub (Mar 27, 2021): The recommended way to make this work is by entering `wt -d .` in the explorer bar. For more info see #878 (comment).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#13216