5 dir_minimal=~/config/dotfiles_minimal
6 dir_user_minimal=~/config/dotfiles_user_minimal
7 dir_user_thinkpad=~/config/dotfiles_user_thinkpad
8 dir_user_server=~/config/dotfiles_user_server
9 dir_root=~/config/dotfiles_root
11 find ~ -lname $homedir'/config/*' -delete
12 for file in `ls $dir_minimal`; do
13 ln -fs $dir_minimal/$file ~/.$file
15 for file in `ls $dir_user_minimal`; do
16 ln -fs $dir_user_minimal/$file ~/.$file
18 if [ "$1" = "thinkpad" ]; then
19 for file in `ls $dir_user_thinkpad`; do
20 ln -fs $dir_user_thinkpad/$file ~/.$file
22 elif [ "$1" = "server" ]; then
23 for file in `ls $dir_user_server`; do
24 ln -fs $dir_user_server/$file ~/.$file
27 if [ "$(id -u)" -eq "0" ]; then
28 for file in `ls $dir_root`; do
29 ln -fs $dir_root/$file ~/.$file