diff options
-rwxr-xr-x | dots.sh | 5 |
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() { | |||
74 | dotify() { | 74 | dotify() { |
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 | ||