From: Christian Heller Date: Sat, 12 Dec 2015 11:12:48 +0000 (+0100) Subject: Don't symlink user dotfiles into root home. X-Git-Url: https://plomlompom.com/repos/?a=commitdiff_plain;h=62c0fa84083528ad1d5f01569689230263aab8d2;hp=0fb5e7d68e48b1df2a592f3487cfeef23e227f73;p=config Don't symlink user dotfiles into root home. --- diff --git a/symlink.sh b/symlink.sh index fabee57..f0e6345 100755 --- 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_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 +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