6 dir_minimal=~/config/dotfiles/minimal
7 dir_user_prefix=~/config/dotfiles/user
8 dir_user_minimal=$dir_user_prefix/minimal
9 dir_user_machine=$dir_user_prefix/$1
10 dir_user_variety=$dir_user_prefix/$2
11 dir_root=~/config/dotfiles/root
13 find ~ -lname $homedir'/config/*' -delete
14 for file in `ls $dir_minimal`; do
15 ln -fs $dir_minimal/$file ~/.$file
17 if [ "$(id -u)" -eq "0" ]; then
18 for file in `ls $dir_root`; do
19 ln -fs $dir_root/$file ~/.$file
22 for file in `ls $dir_user_minimal`; do
23 ln -fs $dir_user_minimal/$file ~/.$file
25 for file in `ls $dir_user_machine`; do
26 ln -fs $dir_user_machine/$file ~/.$file
28 for file in `ls $dir_user_variety`; do
29 ln -fs $dir_user_variety/$file ~/.$file