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
3 changed files with 16 additions and 2 deletions

View File

@ -30,6 +30,7 @@ brew "gnupg"
brew "go"
brew "htop"
brew "hugo"
brew "imagemagick"
brew "lychee"
brew "neovim"
brew "onefetch"
@ -40,6 +41,7 @@ brew "poetry"
brew "poppler"
brew "pyright"
brew "r"
brew "rbenv"
brew "restic"
brew "ripgrep"
brew "rsync"
@ -48,6 +50,7 @@ brew "rustup-init"
brew "shellcheck"
brew "stow"
brew "tmux"
brew "wakatime-cli"
brew "yt-dlp"
brew "zoxide"
brew "zsh"

View File

@ -1,4 +1,13 @@
#!/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

View File

@ -33,7 +33,9 @@ fi
export CALIBRE_USE_SYSTEM_THEME=0
export CALIBRE_USE_DARK_PALETTE=1
# macOS: homebrew
# macOS
[ -f /opt/homebrew/bin/brew ] && eval "$(/opt/homebrew/bin/brew shellenv)"
eval "$(rbenv init - zsh)"
export LOLCOMMITS_DELAY=2
export PATH