home
·
contact
·
privacy
projects
/
config
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1acab97
)
Improve symlink script.
author
Christian Heller
<c.heller@plomlompom.de>
Sat, 13 Jun 2015 12:41:43 +0000
(14:41 +0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Sat, 13 Jun 2015 12:41:43 +0000
(14:41 +0200)
symlink.sh
patch
|
blob
|
history
diff --git
a/symlink.sh
b/symlink.sh
index c4e540494a8db102f51c3cf97847ed531c5ada2b..1b966ef2d650ce73c26069cc413a5b0a36259484 100755
(executable)
--- a/
symlink.sh
+++ b/
symlink.sh
@@
-4,8
+4,10
@@
set -x
dir=~/config/dotfiles
dir_root=~/config/dotfiles_root
+homedir=`echo ~`
+find ~ -lname $homedir'/config/*' -delete
for file in `ls $dir`; do
- ln -
f
s $dir/$file ~/.$file
+ ln -s $dir/$file ~/.$file
done
if [ "$(id -u)" -eq "0" ]; then
for file in `ls $dir_root`; do