to tackle this, you can use a multi-environment setup with chezmoi to manage configs for codex, claude, cursor & copilot seamlessly across different environments ⚡
for each platform's config file:
- create separate dirs in your dotfiles repo (e. g. codexp/. claudef/)
in ~/. chezmirc. yaml:
backends:- type : localfspath_prefix : $HOME/. config/
edit templates for each platform's config to fit their specific needs
run ` chezmoi add-cfg -template-name codex. codexp/` & repeat similarly with other platforms
this way, you can switch between environments by switching the active template in ~/. chezmirc. yaml and using commands like `chezmoi apply`!
inb4 someone says
just use wordpress