git-notify: Shell-Start-Benachrichtigung bei Remote-Updates

Neues Skript bin/git-notify.sh prüft beim interaktiven Shell-Start
im Hintergrund alle Repos auf neue Remote-Commits (git fetch + count).
Gibt nur eine Zeile aus wenn Updates vorhanden, sonst kein Output.
Nutzer steuert Aktualisierung selbst via gitsync.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
rene 2026-03-27 14:01:48 +01:00
parent 562ebb64f2
commit cbfda7a410
2 changed files with 54 additions and 0 deletions

View file

@ -284,6 +284,11 @@ if [[ -o interactive ]] && command -v cowsay &>/dev/null; then
unfunction _greet
fi
# Git-Updates beim Shell-Start prüfen (Hintergrund, kein Output wenn alles aktuell)
if [[ -o interactive ]] && [[ -f "$HOME/git-projekte/dotfiles-rene/bin/git-notify.sh" ]]; then
("$HOME/git-projekte/dotfiles-rene/bin/git-notify.sh" &)
fi
alias gitsync="~/git-projekte/dotfiles-rene/bin/git-sync-all.sh"
alias mac-sync="curl -fsSL https://git.motocamp.de/rene/dotfiles-rene/raw/branch/main/bin/git-sync-all.sh | bash"