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
index 9343880d057918d81c4f0999c5b6523c1ada5459..c4e540494a8db102f51c3cf97847ed531c5ada2b 100755
(executable)
--- a/
symlink.sh
+++ b/
symlink.sh
@@
-1,7
+1,14
@@
#!/bin/sh
#!/bin/sh
+set -x
+
dir=~/config/dotfiles
dir=~/config/dotfiles
-cd ~
+dir_root=~/config/dotfiles_root
for file in `ls $dir`; do
ln -fs $dir/$file ~/.$file
done
for file in `ls $dir`; do
ln -fs $dir/$file ~/.$file
done
+if [ "$(id -u)" -eq "0" ]; then
+ for file in `ls $dir_root`; do
+ ln -fs $dir_root/$file ~/.$file
+ done
+fi