summaryrefslogtreecommitdiff
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
commitd7cf0c7e8554553c6fec634e9f07271ee3d2502d (patch)
treefe52be2f501fa1b9c740134cc34a7afba6663f3e
parent8cf277ababd28c04ec5e4b868449ea10510a0797 (diff)
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/"); \