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/minimal
10 if [ "$3" = "" ]; then
11 dir_user_variety=$dir_user_prefix/$1/$2
13 dir_user_variety=$dir_user_prefix/$1/$2/minimal
15 dir_user_subvariety=$dir_user_prefix/$1/$2/$3
16 dir_root=~/config/dotfiles/root
18 find ~ -lname $homedir'/config/*' -delete
19 for file in `ls $dir_minimal`; do
20 ln -fs $dir_minimal/$file ~/.$file
22 if [ "$(id -u)" -eq "0" ]; then
23 for file in `ls $dir_root`; do
24 ln -fs $dir_root/$file ~/.$file
27 for file in `ls $dir_user_minimal`; do
28 ln -fs $dir_user_minimal/$file ~/.$file
30 for file in `ls $dir_user_machine`; do
31 ln -fs $dir_user_machine/$file ~/.$file
33 for file in `ls $dir_user_variety`; do
34 ln -fs $dir_user_variety/$file ~/.$file
36 if [ ! "$3" = "" ]; then
37 for file in `ls $dir_user_subvariety`; do
38 ln -fs $dir_user_subvariety/$file ~/.$file