about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2024-06-26 12:37:15 -0500
committerCase Duckworth2024-06-26 12:37:15 -0500
commitda16a3baf901b68fdd7597e5b7c582ca82546bae (patch)
treee5bf48144cbe3753eee64899fef709ad2e636887
parentEXWM (diff)
downloaddots-da16a3baf901b68fdd7597e5b7c582ca82546bae.tar.gz
dots-da16a3baf901b68fdd7597e5b7c582ca82546bae.zip
Actually fix linking
-rwxr-xr-xdots.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/dots.sh b/dots.sh index 9a31d99..c312cb1 100755 --- a/dots.sh +++ b/dots.sh
@@ -74,7 +74,10 @@ homify() {
74dotify() { 74dotify() {
75 getfiles "$@" | 75 getfiles "$@" |
76 while read -r file 76 while read -r file
77 do mklink "$file" "$DIR/${file##*/.}" 77 do
78 lf="${file##$HOME/}" # remove $HOME
79 lf="${lf#.}" # remove starting dot
80 mklink "$file" "$DIR/$lf"
78 done 81 done
79} 82}
80 83