summaryrefslogtreecommitdiff
path: root/link.sh
diff options
context:
space:
mode:
Diffstat (limited to 'link.sh')
-rwxr-xr-xlink.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/link.sh b/link.sh
index 86b22e4..6d516e3 100755
--- a/link.sh
+++ b/link.sh
@@ -10,7 +10,9 @@ cd $dir
# move current files and link contained files
files=$(ls $dir)
-for name in $files; do
+for f in $files; do
+ name=${f//+//}
+ echo $name
mv ~/.$name ~/dotfiles_old/
- ln -s $dir/$name ~/.$name
+ ln -s $dir/$f ~/.$name
done