X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;ds=sidebyside;f=bin%2Fsymlink.sh;h=d653a0b9d01001957dd8be53002ff1c0110afe46;hb=5304303207a36a4533f8837e22b5bf70b652ff0f;hp=5f4fc8177d6cb500b96bb6ffcaa82d81707c1ba1;hpb=67e783c56b750fdb3d9e77eada3cd3dd9935d5f7;p=config
diff --git a/bin/symlink.sh b/bin/symlink.sh
index 5f4fc81..d653a0b 100755
--- a/bin/symlink.sh
+++ b/bin/symlink.sh
@@ -6,8 +6,13 @@ set -e
dir_minimal=~/config/dotfiles/minimal
dir_user_prefix=~/config/dotfiles/user
dir_user_minimal=$dir_user_prefix/minimal
-dir_user_machine=$dir_user_prefix/$1
-dir_user_variety=$dir_user_prefix/$2
+dir_user_machine=$dir_user_prefix/$1/minimal
+if [ "$3" = "" ]; then
+ dir_user_variety=$dir_user_prefix/$1/$2
+else
+ dir_user_variety=$dir_user_prefix/$1/$2/minimal
+fi
+dir_user_subvariety=$dir_user_prefix/$1/$2/$3
dir_root=~/config/dotfiles/root
homedir=`echo ~`
find ~ -lname $homedir'/config/*' -delete
@@ -28,4 +33,9 @@ else
for file in `ls $dir_user_variety`; do
ln -fs $dir_user_variety/$file ~/.$file
done
+ if [ ! "$3" = "" ]; then
+ for file in `ls $dir_user_subvariety`; do
+ ln -fs $dir_user_subvariety/$file ~/.$file
+ done
+ fi
fi