Switching Overlays
The switch command atomically replaces all existing overlays with a new one. This is useful when you want to swap between different overlay configurations.
repoverlay switch ~/overlays/typescript-airepoverlay switch https://github.com/user/ai-configs/tree/main/rustWhat happens during a switch
Section titled “What happens during a switch”- All currently applied overlays are removed (files, git excludes, state)
- The new overlay is applied in their place
This is equivalent to running repoverlay remove --all followed by repoverlay apply, but as a single atomic operation.
When to use switch
Section titled “When to use switch”- Changing between language-specific overlay sets (e.g., Rust vs TypeScript configs)
- Swapping between personal and team overlay configurations
- Resetting to a known overlay state