home
·
contact
·
privacy
projects
/
config
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove superfluous ssh.sh script.
[config]
/
symlink.sh
diff --git
a/symlink.sh
b/symlink.sh
index a78b1dec9ad57240b49b7367db5623c558fb6d2d..1b966ef2d650ce73c26069cc413a5b0a36259484 100755
(executable)
--- a/
symlink.sh
+++ b/
symlink.sh
@@
-1,11
+1,15
@@
#!/bin/sh
#!/bin/sh
+set -x
+
dir=~/config/dotfiles
dir_root=~/config/dotfiles_root
dir=~/config/dotfiles
dir_root=~/config/dotfiles_root
+homedir=`echo ~`
+find ~ -lname $homedir'/config/*' -delete
for file in `ls $dir`; do
for file in `ls $dir`; do
- ln -
f
s $dir/$file ~/.$file
+ ln -s $dir/$file ~/.$file
done
done
-if [ "$(id -u)" -
ne
"0" ]; then
+if [ "$(id -u)" -
eq
"0" ]; then
for file in `ls $dir_root`; do
ln -fs $dir_root/$file ~/.$file
done
for file in `ls $dir_root`; do
ln -fs $dir_root/$file ~/.$file
done