Compare commits

..

No commits in common. "main" and "v0.1.0" have entirely different histories.
main ... v0.1.0

3 changed files with 4 additions and 4 deletions

View file

@ -21,7 +21,7 @@ DONE_MIN_CMD_DURATION=15 # Default: 5
Uses `grep -P` (Perl syntax) to filter out commands that should never notify. Uses `grep -P` (Perl syntax) to filter out commands that should never notify.
```zsh ```zsh
DONE_EXCLUDE='^\sgit (?!push|pull|fetch)' # Default: '' DONE_MIN_CMD_DURATION='^\sgit (?!push|pull|fetch)' # Default: ''
``` ```
### Play a sound when sending notification ### Play a sound when sending notification

View file

@ -9,7 +9,7 @@ if [ -z "$SSH_CLIENT" ]; then
elif [ "${DONE_ALLOW_NONGRAPHICAL:-0}" -ne 0 ] && (( ${+functions[done_send_notification]} )); then elif [ "${DONE_ALLOW_NONGRAPHICAL:-0}" -ne 0 ] && (( ${+functions[done_send_notification]} )); then
: # Or if the user really wants us to : # Or if the user really wants us to
else else
# Exit early otherwise # Exit early if otherwise
return return
fi fi
@ -120,7 +120,7 @@ __done_is_ignored_command() {
return 1 return 1
fi fi
# shellcheck disable=2154 # shellcheck disable=2154
printf '%s' "$__done_last_command" | grep -q -P "$DONE_EXCLUDE" printf '%s' "$__done_last_command" | grep -q -v -P "$DONE_EXCLUDE"
} }
__done_notify() { __done_notify() {

View file

@ -69,7 +69,7 @@
zsh-done = pkgs.stdenvNoCC.mkDerivation rec { zsh-done = pkgs.stdenvNoCC.mkDerivation rec {
pname = "zsh-done"; pname = "zsh-done";
version = "0.1.1"; version = "0.1.0";
src = ./done.plugin.zsh; src = ./done.plugin.zsh;