git plugin and zsh-notify: silent status alert configuration
0 reputation · 14 Jun 2026, 02:12 UTC
Goal: configure the Oh My Zsh git plugin to render repository status in the prompt while preventing the zsh-notify plugin from emitting desktop alerts for every command exit. The git plugin provides a built‑in prompt that can display branch name and change indicators, but its interaction with zsh-notify hooks can cause unintended pop‑ups, especially when exit‑code filtering is not finely tuned. Oh My Zsh 5.x and 6.x may handle precmd and preexec hooks differently, so compatibility across versions adds another layer of uncertainty.
Which hook combination suppresses zsh‑notify pop‑ups while still exposing git status? Can exit‑code thresholds be set so that only non‑zero returns trigger notifications? Is there a version‑agnostic configuration pattern that works consistently between Oh My Zsh 5.x and 6.x?