home
·
contact
·
privacy
projects
/
config
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add pentadactylrc to dotfiles.
[config]
/
symlink.sh
diff --git
a/symlink.sh
b/symlink.sh
old mode 100644
(file)
new mode 100755
(executable)
index
abb261c
..
c4e5404
--- a/
symlink.sh
+++ b/
symlink.sh
@@
-1,7
+1,14
@@
#!/bin/sh
#!/bin/sh
+set -x
+
dir=~/config/dotfiles
dir=~/config/dotfiles
-cd ~
-for file in
$dir
; do
- ln -s $dir/$file ~/.$file
+dir_root=~/config/dotfiles_root
+for file in
`ls $dir`
; do
+ ln -
f
s $dir/$file ~/.$file
done
done
+if [ "$(id -u)" -eq "0" ]; then
+ for file in `ls $dir_root`; do
+ ln -fs $dir_root/$file ~/.$file
+ done
+fi