From e930ed6bfc5ecb47e8009248ebd7d153bf678b9a Mon Sep 17 00:00:00 2001 From: earnest ma Date: Sat, 24 Jul 2021 10:40:45 -0400 Subject: [PATCH] git --- .config/git/config | 1 + .config/git/hooks/post-commit | 5 +++++ 2 files changed, 6 insertions(+) create mode 100755 .config/git/hooks/post-commit 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 +