AI Dotfiles Sync Prompt
Contents
Gist: dotfiles-setup-prompt
A single prompt you paste into any AI assistant with terminal access (GitHub Copilot CLI, Claude Code, Cursor) and it will discover, backup, and sync your entire dev environment using chezmoi.
What it does
- Discovers AI tool configs (Copilot CLI, Claude Code, Cursor, custom instructions, memory files)
- Finds shell configs, git settings, editor preferences
- Sets up chezmoi to manage everything in a single git repo
- Handles templates for machine-specific differences
- Works on macOS and Linux
How to use it
- Copy the prompt from the gist
- Paste it into your AI CLI tool of choice
- Let it scan your system and set up chezmoi
- Push to a private GitHub repo for cross-machine sync