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:
0fb5e7d
)
Don't symlink user dotfiles into root home.
author
Christian Heller
<c.heller@plomlompom.de>
Sat, 12 Dec 2015 11:12:48 +0000
(12:12 +0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Sat, 12 Dec 2015 11:12:48 +0000
(12:12 +0100)
symlink.sh
patch
|
blob
|
history
diff --git
a/symlink.sh
b/symlink.sh
index fabee57c51f2969ba963d8ec0221dcf6b5b9736a..f0e6345b225867cb93b44174f7a88a2e63c169c6 100755
(executable)
--- a/
symlink.sh
+++ b/
symlink.sh
@@
-12,20
+12,21
@@
find ~ -lname $homedir'/config/*' -delete
for file in `ls $dir_minimal`; do
ln -fs $dir_minimal/$file ~/.$file
done
for file in `ls $dir_minimal`; do
ln -fs $dir_minimal/$file ~/.$file
done
-for file in `ls $dir_user_minimal`; do
- ln -fs $dir_user_minimal/$file ~/.$file
-done
-if [ "$1" = "thinkpad" ]; then
- for file in `ls $dir_user_thinkpad`; do
- ln -fs $dir_user_thinkpad/$file ~/.$file
- done
-elif [ "$1" = "server" ]; then
- for file in `ls $dir_user_server`; do
- ln -fs $dir_user_server/$file ~/.$file
- done
-fi
if [ "$(id -u)" -eq "0" ]; then
for file in `ls $dir_root`; do
ln -fs $dir_root/$file ~/.$file
done
if [ "$(id -u)" -eq "0" ]; then
for file in `ls $dir_root`; do
ln -fs $dir_root/$file ~/.$file
done
+else
+ for file in `ls $dir_user_minimal`; do
+ ln -fs $dir_user_minimal/$file ~/.$file
+ done
+ if [ "$1" = "thinkpad" ]; then
+ for file in `ls $dir_user_thinkpad`; do
+ ln -fs $dir_user_thinkpad/$file ~/.$file
+ done
+ elif [ "$1" = "server" ]; then
+ for file in `ls $dir_user_server`; do
+ ln -fs $dir_user_server/$file ~/.$file
+ done
+ fi
fi
fi