dotfiles/git/.config/git/hooks/post-commit

9 lines
477 B
Plaintext
Raw Normal View History

2021-11-04 23:18:36 -04:00
#!/usr/bin/env bash
2022-09-28 19:43:04 -04:00
### lolcommits hook (begin) ###
2023-01-04 19:24:39 -05:00
LANG="en_CA.UTF-8" && PATH="$PATH:/Users/earne/.rbenv/versions/3.1.2/bin:/opt/homebrew/bin" && if [ ! -d "$GIT_DIR/rebase-merge" ] && [ "$LOLCOMMITS_CAPTURE_DISABLED" != "true" ] && [ "$HOST" = "blahaj.local" ]; then lolcommits --capture ; fi
2022-09-28 19:43:04 -04:00
### lolcommits hook (end) ###
2021-11-04 23:18:36 -04:00
COMMIT_INFO=$(git log -1 HEAD --format=reference)
2023-01-04 19:24:39 -05:00
[ $(uname -s) = "Linux" ] && [ -z $DISPLAY ] || notify-send 'Git commit: ' "$COMMIT_INFO" -u low