From 310cb7b17b643074aea334d7251519f729e22b71 Mon Sep 17 00:00:00 2001 From: Viktor Barzin Date: Fri, 6 Feb 2026 19:39:17 +0000 Subject: [PATCH] Make chezmoi sync conditional on chezmoi being installed Skip chezmoi add/re-add steps on VMs where chezmoi is not available. --- dot_claude/CLAUDE.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dot_claude/CLAUDE.md b/dot_claude/CLAUDE.md index 4afee67..ea5e9d1 100644 --- a/dot_claude/CLAUDE.md +++ b/dot_claude/CLAUDE.md @@ -3,12 +3,13 @@ ## Preferences ### Chezmoi Sync -When making changes to dotfiles (including Claude files in `~/.claude/`), always: +When making changes to dotfiles (including Claude files in `~/.claude/`), sync with chezmoi **only if it is installed** (`command -v chezmoi`): 1. Sync with chezmoi: - `chezmoi add ` for new files - `chezmoi re-add ` for updated files 2. Commit the changes in the chezmoi source directory: - `cd $(chezmoi source-path) && git add -A && git commit -m ""` +If chezmoi is not installed, skip the sync steps and just make the changes directly. ### Claude Plugins When installing new Claude plugins or marketplaces, update these files: