Use multiple config files to separate settings that are machine-specific #16071

Open
opened 2026-01-31 04:56:38 +00:00 by claunia · 0 comments
Owner

Originally created by @rbanffy on GitHub (Dec 8, 2021).

Use multiple config files so that personal preferences can be split from machine-specific options

Like many people, I keep a dotfiles repo. When using multiple Windows machines, the installed WSL hosts are different and, therefore, it's not possible to share the settings.json file between multiple computers because the elements under profiles.list are different, while profiles.defaults is safe to share between computers.

I would suggest Terminal to use a second JSON file under LocalState to keep the profiles.list entries to make it easy to keep settings.json safe to share between multiple machines while keeping unrelated settings in a separate file. Also, the defaultProfile key would need to be moved into this new file, and JSON schemas should be adjusted to reflect that.

Originally created by @rbanffy on GitHub (Dec 8, 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! --> # Use multiple config files so that personal preferences can be split from machine-specific options Like many people, I keep a dotfiles repo. When using multiple Windows machines, the installed WSL hosts are different and, therefore, it's not possible to share the settings.json file between multiple computers because the elements under profiles.list are different, while profiles.defaults is safe to share between computers. I would suggest Terminal to use a second JSON file under LocalState to keep the profiles.list entries to make it easy to keep settings.json safe to share between multiple machines while keeping unrelated settings in a separate file. Also, the defaultProfile key would need to be moved into this new file, and JSON schemas should be adjusted to reflect that.
claunia added the Issue-FeatureResolution-Duplicate labels 2026-01-31 04:56:39 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#16071