14 lines
560 B
Bash
Executable File
14 lines
560 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
### lolcommits hook (begin) ###
|
|
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" ]; then lolcommits --capture ; fi
|
|
### lolcommits hook (end) ###
|
|
|
|
COMMIT_INFO=$(git log -1 HEAD --format=reference)
|
|
|
|
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
|