diff --git a/.config/git/config b/.config/git/config index 4c5960c..f592372 100644 --- a/.config/git/config +++ b/.config/git/config @@ -12,6 +12,7 @@ commitGraph = true longpaths = true editor = nvim + hooksPath = /home/earne/.config/git/hooks [init] defaultBranch = main diff --git a/.config/git/hooks/post-commit b/.config/git/hooks/post-commit new file mode 100755 index 0000000..5c8f450 --- /dev/null +++ b/.config/git/hooks/post-commit @@ -0,0 +1,5 @@ +#! /usr/bin/env bash + +COMMITNOTIFICATION=$(git log -1 HEAD --format=reference) +notify-send 'Git Commit Success' "$COMMITNOTIFICATION" -u low +