From da16a3baf901b68fdd7597e5b7c582ca82546bae Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Wed, 26 Jun 2024 12:37:15 -0500 Subject: Actually fix linking --- dots.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dots.sh b/dots.sh index 9a31d99..c312cb1 100755 --- a/dots.sh +++ b/dots.sh @@ -74,7 +74,10 @@ homify() { dotify() { getfiles "$@" | while read -r file - do mklink "$file" "$DIR/${file##*/.}" + do + lf="${file##$HOME/}" # remove $HOME + lf="${lf#.}" # remove starting dot + mklink "$file" "$DIR/$lf" done } -- cgit 1.4.1-21-gabe81