aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-01-26 18:37:17 -0600
committerCraig Jennings <c@cjennings.net>2026-01-26 18:37:17 -0600
commit1eadb6a23838a4b931718d4667fe36c226a9965b (patch)
treeccb894b3a70bf6001be5c532a5694a2981128968
parentf1b3e35a62a92e00ebbfb1e6e8fdd9b8cbebf077 (diff)
downloadarchsetup-1eadb6a23838a4b931718d4667fe36c226a9965b.tar.gz
archsetup-1eadb6a23838a4b931718d4667fe36c226a9965b.zip
fix(makefile): include top-level dotdirs in import selection
Import now searches: - ~/.* (top-level dotdirs like .emacs.d, .ssh) - ~/.config/* - ~/.local/* Excludes .cache, .local, .config from top-level (they're handled separately). Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index c3e6cc7..ad792da 100644
--- a/Makefile
+++ b/Makefile
@@ -82,6 +82,7 @@ import:
@echo "Select directories to import (Tab to multi-select, Enter to confirm):"
@echo ""
@selections=$$({ \
+ find $(HOME) -maxdepth 1 -mindepth 1 -name '.*' -type d 2>/dev/null | grep -v '\.cache\|\.local\|\.config' | sed 's|$(HOME)/||'; \
find $(HOME)/.config -maxdepth 1 -mindepth 1 -type d 2>/dev/null | sed 's|$(HOME)/||'; \
find $(HOME)/.local -maxdepth 2 -mindepth 1 -type d 2>/dev/null | sed 's|$(HOME)/||'; \
} | sort -u | fzf --multi --prompt="Import> " --header="Select configs to import into dotfiles/common/"); \