summaryrefslogtreecommitdiff
path: root/Biz/Bild/ShellHook.sh
diff options
context:
space:
mode:
Diffstat (limited to 'Biz/Bild/ShellHook.sh')
-rw-r--r--Biz/Bild/ShellHook.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/Biz/Bild/ShellHook.sh b/Biz/Bild/ShellHook.sh
index 7724c28..9e629f3 100644
--- a/Biz/Bild/ShellHook.sh
+++ b/Biz/Bild/ShellHook.sh
@@ -18,6 +18,12 @@ alias runghc="runghc --ghc-arg=-i$BIZ_ROOT"
alias tree="tree -I _"
+# link git hooks
+rm -f $BIZ_ROOT/.git/hooks/{post-checkout,post-merge,pre-commit}
+ln -s $BIZ_ROOT/Biz/Ide/post-checkout $BIZ_ROOT/.git/hooks/post-checkout
+ln -s $BIZ_ROOT/Biz/Ide/post-merge $BIZ_ROOT/.git/hooks/post-merge
+ln -s $BIZ_ROOT/Biz/Lint.py $BIZ_ROOT/.git/hooks/pre-commit
+
function bild() {
runghc Biz.Bild $@
}