Skip to content

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.

Terminal window
repoverlay switch ~/overlays/typescript-ai
repoverlay switch https://github.com/user/ai-configs/tree/main/rust
  1. All currently applied overlays are removed (files, git excludes, state)
  2. 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.

  • 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