summaryrefslogtreecommitdiff
path: root/.mrconfig.in
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2020-02-02 11:37:54 -0700
committerSean Whitton <spwhitton@spwhitton.name>2020-02-02 11:37:54 -0700
commitbc687302753c78c8acdffbf89aa4b3a0ba3fb466 (patch)
tree6782835c4b48810ef0d73e16ed16aeb927bd7bfb /.mrconfig.in
parent38e0c240f4eeba591131b59298c82dc16158e7ac (diff)
downloaddotfiles-bc687302753c78c8acdffbf89aa4b3a0ba3fb466.tar.gz
stop stowing git hooks into $HOME
No use for those symlinks.
Diffstat (limited to '.mrconfig.in')
-rw-r--r--.mrconfig.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/.mrconfig.in b/.mrconfig.in
index a93afe96..de5fa5e2 100644
--- a/.mrconfig.in
+++ b/.mrconfig.in
@@ -91,7 +91,7 @@ lib =
# on artemis shortgeese athena hephaestus iris
# }
install_git_hooks() {
- cp -L $HOME/src/dotfiles/lib/hooks/git/$1/* "$MR_REPO/.git/hooks"
+ cp -L $HOME/src/dotfiles/hooks/git/$1/* "$MR_REPO/.git/hooks"
}
# --- run a command on athena in a sane environment
@@ -133,7 +133,7 @@ lib =
# [ -L "src/build-area" ] || ln -s -T /tmp/debuild src/build-area
[ -e "Downloads" ] || ln -s tmp Downloads
# clean up after additions to .stow-local-ignore
- find bin lib/aid lib/perl5 \
+ find bin lib/aid lib/perl5 lib/hooks \
-type l 2>/dev/null | while read -r link; do
if readlink "$link" | grep --quiet "^[../]*/.STOW/"; then
rm "$link"
@@ -144,6 +144,7 @@ lib =
bin \
lib/aid \
lib/perl5 \
+ lib/hooks \
lib/athena \
local/anacron/spool \
-type d -empty -delete 2>/dev/null ||: