From d4b7b6354ddadec1f183ab3c3f27e02b5dc4492d Mon Sep 17 00:00:00 2001 From: Rob Harbaugh Date: Wed, 22 Apr 2026 10:50:27 -0400 Subject: [PATCH] Fix clean target to remove all symlinks, not just dangling ones -xtype l only catches broken symlinks; a stale symlink pointing to a file that still exists (e.g. leftover from stow laptop on a work PC) would survive clean and then block the next stow run. Also add .zshrc/.zshenv to the clean sweep. Co-Authored-By: Claude Sonnet 4.6 --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d9b92fe..64c2003 100644 --- a/Makefile +++ b/Makefile @@ -10,5 +10,7 @@ clean: stow -D shared laptop work 2>/dev/null; \ find $(HOME)/.config/nvim $(HOME)/.config/emacs $(HOME)/.config/tmux \ $(HOME)/.config/ghostty $(HOME)/.config/ranger \ - -maxdepth 4 -xtype l -delete 2>/dev/null; \ + -maxdepth 4 -type l -delete 2>/dev/null; \ + find $(HOME) -maxdepth 1 -type l \( -name '.zshrc' -o -name '.zshenv' \) \ + -delete 2>/dev/null; \ true