10 lines
284 B
Bash
Executable File
10 lines
284 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
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
|