Setting Windows Terminal {startingDirectory} to current path

CMinusMinus 1 Reputation point
2020-12-26T14:49:56.103+00:00

Hello!
When I type in cmd or cmd.exe into the Windows Explorer address bar from "C:\Users\Me\Stuff\", it opens cmd with my current folder ("C:\Users\Me\Stuff\") as the starting directory. When I do the same with wt or wt.exe for the Windows Terminal, it just uses the startingDirectory variable, set in the settings.json file. Is there a way, I can set the startingDirectory to my current path? For example by using a variable in the setting like this?:

{  
    "startingDirectory": "%CURRENTPATH%"  
}  

Also: Leaving it out or changing it to %USERPROFILE%, like here: https://learn.microsoft.com/en-us/windows/terminal/customize-settings/profile-settings also doesn't work.

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,708 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Castorix31 81,831 Reputation points
    2020-12-26T15:33:20.917+00:00

    I just tested with last version and it works correctly :

     "profiles":
        {
          "defaults": {
            // Put settings here that you want to apply to all profiles.
            "startingDirectory": "%USERPROFILE%"
          },
    

    or

      "profiles":
        {
          "defaults": {
            // Put settings here that you want to apply to all profiles.
            "startingDirectory": "%LOCALAPPDATA%"
          },
    

    etc...

    0 comments No comments