Commit cbb4c9b Tim Heinsohn
committed
1 parent c0351e7 commit cbb4c9b Copy full SHA for cbb4c9b
File tree 2 files changed +14
-0
lines changed
2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # symlink-project-dotfiles
4
+ #
5
+ # expects dotfiles for individual projects to reside under ~/*.dotfiles
6
+ # and each project dotfiles to have a bin/symlink-dotfiles script
7
+ find ~ -maxdepth 1 -type d -iname ' *.dotfiles*' | while read dotfiles
8
+ do
9
+ symlink_script=" ${dotfiles} /bin/symlink-dotfiles"
10
+ if [ -f " ${symlink_script} " ]; then
11
+ exec " ${symlink_script} "
12
+ fi
13
+ done
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ dotfiles_dir = "dotfiles"
6
6
7
7
[settings ]
8
8
prehooks = [ " mkdir -p ~/.config/rofi ~/.config/rofi-pass ~/.config/sheldon ~/.zsh" ]
9
+ posthooks = [ " ~/dotfiles/bin/symlink-project-dotfiles" ]
9
10
10
11
[settings .dots ]
11
12
gitattributes = { source = " git/gitattributes" , target = " .gitattributes" }
You can’t perform that action at this time.
0 commit comments