commit 583af04e564deee71883051338106b941620dba0 Author: Danielle McLean Date: Mon Oct 3 12:44:37 2016 +1100 Initial commit, not a lot to it yet diff --git a/home/.gitconfig b/home/.gitconfig new file mode 100644 index 0000000..c7d71ca --- /dev/null +++ b/home/.gitconfig @@ -0,0 +1,11 @@ +[include] + path = .gitconfig.local + +[alias] + d = diff + l = log --graph --oneline --decorate --all + st = status --short + shove = "!f() { git push ${1:-origin} :; }; f" + +[commit] + gpgsign = true diff --git a/home/.githooks/post-commit b/home/.githooks/post-commit new file mode 100755 index 0000000..6468f60 --- /dev/null +++ b/home/.githooks/post-commit @@ -0,0 +1,11 @@ +#!/usr/bin/env zsh + +chmod a-x $0 + +msg="$(git log -n 1 --pretty=format:'%s%n%n%b')" +guilt="$(git guilt HEAD~1 HEAD)" +what="$(curl http://whatthecommit.com/index.txt)" + +git commit --no-verify --amend -m $msg$'\n\n'$guilt$'\n\n'$what + +chmod a+x $0