By default, it opens to the current user directory. If you would like to change that, you have to change the settings. The settings interface is perfunctory. For editing a setting like the default directory, you have to add code to the settings.json file, which isn’t as scary as it sounds. The following steps show how to change it for the Powershell profile. Follow the same steps for each profile.
- In Windows Terminal, click the down arrow.
- In the menu that opens, click Settings.
- In the left pane, click Actions.
- In the right pane, click Open JSON file.
- Scroll down to the code block for PowerShell profile marked by the comment “Make changes here to the powershell.exe profile”.
- Add a comma at the end of the code block so that you can add another line of code.
- Add “startingDirectory”: “C:\” on the next line.
- Click File on the menu bar.
- In the File menu, click Save.