about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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