Compare commits

..

2 Commits

Author SHA1 Message Date
earnest ma 52a4df4913
global lolcommits 2022-09-28 19:45:48 -04:00
earnest ma 14364c5a7d
lolcommits 2022-09-28 19:43:04 -04:00
1 changed files with 6 additions and 1 deletions
git/.config/git/hooks

View File

@ -5,4 +5,9 @@ LANG="en_CA.UTF-8" && PATH="$PATH:/Users/earne/.rbenv/versions/3.1.2/bin:/opt/ho
### lolcommits hook (end) ###
COMMIT_INFO=$(git log -1 HEAD --format=reference)
notify-send 'Git commit: ' "$COMMIT_INFO" -u low
if type "notify-send" > /dev/null; then
notify-send 'Git commit: ' "$COMMIT_INFO" -u low
elif type "osascript" > /dev/null; then
osascript -e "display notification "$COMMIT_INFO" with title \"Git commit\""
fi