Make path to settings.json configurable #22036

Closed
opened 2026-01-31 08:01:39 +00:00 by claunia · 2 comments
Owner

Originally created by @mu88 on GitHub (Aug 1, 2024).

Description of the new feature/enhancement

At the moment, the Windows Terminal settings file settings.json is located at a rather cryptic location, e.g. C:\Users\MyUser\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json. Furthermore, it varies on different environments, e.g. it is different on my business laptop although using the same app version.
Last but not least, the hard-to-guess location makes it nearly impossible to put the file under version control without using techniques like symbolic links.

Therefore, it would be nice if one could specify from where Windows Terminal loads its settings.

Proposed technical implementation details (optional)

An easy way could be to introduce an environment variable (e.g. WT_CONFIG_FILE, pointing to C:\dev\GitHub\dotfiles\WindowsTerminal\settings.json) which gets picked up by Windows Terminal when starting the app. In case the environment variable is present, it will be picked up, otherwise it falls back to the default settings location (e.g. C:\Users\MyUser\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json).

Originally created by @mu88 on GitHub (Aug 1, 2024). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 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 At the moment, the Windows Terminal settings file `settings.json` is located at a rather cryptic location, e.g. `C:\Users\MyUser\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json`. Furthermore, it varies on different environments, e.g. it is different on my business laptop although using the same app version. Last but not least, the hard-to-guess location makes it nearly impossible to put the file under version control without using techniques like symbolic links. Therefore, it would be nice if one could specify from where Windows Terminal loads its settings. # Proposed technical implementation details (optional) An easy way could be to introduce an environment variable (e.g. `WT_CONFIG_FILE`, pointing to `C:\dev\GitHub\dotfiles\WindowsTerminal\settings.json`) which gets picked up by Windows Terminal when starting the app. In case the environment variable is present, it will be picked up, otherwise it falls back to the default settings location (e.g. `C:\Users\MyUser\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json`).
claunia added the Issue-FeatureNeeds-TriageNeeds-Tag-Fix labels 2026-01-31 08:01:39 +00:00
Author
Owner

@similar-issues-ai[bot] commented on GitHub (Aug 1, 2024):

We've found some similar issues:

  • #17060 , similarity score: 88%
  • #9647 , similarity score: 84%
  • #8708 , similarity score: 84%
  • #8652 , similarity score: 82%

If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

Note: You can give me feedback by 👍 or 👎 this comment.

@similar-issues-ai[bot] commented on GitHub (Aug 1, 2024): We've found some similar issues: - #17060 , similarity score: 88% - #9647 , similarity score: 84% - #8708 , similarity score: 84% - #8652 , similarity score: 82% If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue. > Note: You can give me feedback by 👍 or 👎 this comment.
Author
Owner

@mu88 commented on GitHub (Aug 1, 2024):

duplicate of https://github.com/microsoft/terminal/issues/2933

@mu88 commented on GitHub (Aug 1, 2024): duplicate of https://github.com/microsoft/terminal/issues/2933
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#22036