home
·
contact
·
privacy
projects
/
config
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Fix user group addition in jessie_start.sh.
[config]
/
symlink.sh
1
#!/bin/sh
2
3
set -x
4
5
dir=~/config/dotfiles
6
dir_root=~/config/dotfiles_root
7
homedir=`echo ~`
8
find ~ -lname $homedir'/config/*' -delete
9
for file in `ls $dir`; do
10
ln -s $dir/$file ~/.$file
11
done
12
if [ "$(id -u)" -eq "0" ]; then
13
for file in `ls $dir_root`; do
14
ln -fs $dir_root/$file ~/.$file
15
done
16
fi