Try and improve git hooks
parent
212c0cd017
commit
ec00b1b3ee
|
@ -1,8 +1,8 @@
|
|||
#!/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" ] && [ "$HOST" == "blahaj.local" ]; then lolcommits --capture ; fi
|
||||
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
|
||||
### lolcommits hook (end) ###
|
||||
|
||||
COMMIT_INFO=$(git log -1 HEAD --format=reference)
|
||||
notify-send 'Git commit: ' "$COMMIT_INFO" -u low
|
||||
[ $(uname -s) = "Linux" ] && [ -z $DISPLAY ] || notify-send 'Git commit: ' "$COMMIT_INFO" -u low
|
||||
|
|
Loading…
Reference in New Issue