home
·
contact
·
privacy
projects
/
config
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add first stab at ansible config for new thinkpad.
[config]
/
bin
/
symlink.sh
diff --git
a/bin/symlink.sh
b/bin/symlink.sh
index 5f4fc8177d6cb500b96bb6ffcaa82d81707c1ba1..d653a0b9d01001957dd8be53002ff1c0110afe46 100755
(executable)
--- 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_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
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
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
fi