diff --git a/.gitconfig b/.gitconfig index 4da3fc6..b6cb239 100644 --- a/.gitconfig +++ b/.gitconfig @@ -47,3 +47,6 @@ # Detect renames as well as copies renames = copies + +[init] + templatedir = ~/.git_template diff --git a/symlink.sh b/symlink.sh index 5e7f666..b6b66a5 100755 --- a/symlink.sh +++ b/symlink.sh @@ -16,3 +16,7 @@ for file in .*; do fi ln -sfvn "$source" "$dest" done + +# Also create the pre-commit hook git symlink. +mkdir -p ~/.git_template/hooks +ln -snf $HOME/khan/devtools/khan-linter/githook.py ~/.git_template/hooks/commit-msg