How can I change the default location of the settings.json file? #14309

Closed
opened 2026-01-31 04:06:52 +00:00 by claunia · 3 comments
Owner

Originally created by @iamadiscordbot on GitHub (Jun 22, 2021).

I like to keep all my dotfiles in one place to upload it to github, and the settings.json is located in a way different location. I would like to change it to a different location so that it would be more convenient for me to upload the dotfiles to github.

Ps- I use WSL so I want to move it to the ~/.config folder.

Originally created by @iamadiscordbot on GitHub (Jun 22, 2021). I like to keep all my dotfiles in one place to upload it to github, and the settings.json is located in a way different location. I would like to change it to a different location so that it would be more convenient for me to upload the dotfiles to github. Ps- I use WSL so I want to move it to the ~/.config folder.
claunia added the Issue-FeatureResolution-Duplicate labels 2026-01-31 04:06:52 +00:00
Author
Owner

@WSLUser commented on GitHub (Jun 22, 2021):

The location of settings.json is an implementation detail and can't be moved. It's possible to add logic that allows users to specify the path but while many users like myself use WSL with WT, there are plenty of users who don't use WSL, so moving it doesn't make sense for them. Also, the regeneration logic would be a more difficult piece to account for. If it's not where you said it is, should WT create a new file? What if that file exists elsewhere on the system? Then it becomes "WT searches everywhere for settings.json and if not found, create one at the specified path if one is provided", which would be expensive on filesystem performance on top of waiting for WT to finish searching for it to even start up. Better that it remains where it is.

@WSLUser commented on GitHub (Jun 22, 2021): The location of settings.json is an implementation detail and can't be moved. It's possible to add logic that allows users to specify the path but while many users like myself use WSL with WT, there are plenty of users who don't use WSL, so moving it doesn't make sense for them. Also, the regeneration logic would be a more difficult piece to account for. If it's not where you said it is, should WT create a new file? What if that file exists elsewhere on the system? Then it becomes "WT searches everywhere for settings.json and if not found, create one at the specified path if one is provided", which would be expensive on filesystem performance on top of waiting for WT to finish searching for it to even start up. Better that it remains where it is.
Author
Owner

@zadjii-msft commented on GitHub (Jul 6, 2021):

Thanks for the request! We're generally tracking this request in #2933. That issue might refer to "roaming settings", but it's kinda evolved to the general "import settings from other paths" tracker.

/dup #2933

@zadjii-msft commented on GitHub (Jul 6, 2021): Thanks for the request! We're generally tracking this request in #2933. That issue might refer to "roaming settings", but it's kinda evolved to the general "import settings from other paths" tracker. /dup #2933
Author
Owner

@ghost commented on GitHub (Jul 6, 2021):

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 (Jul 6, 2021): 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#14309