From f63a0bb4256c46cb796ddcbef8c204a96d8421b4 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sun, 13 Aug 2023 15:49:49 +0100 Subject: [PATCH 1/4] done: fix typo --- done.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/done.plugin.zsh b/done.plugin.zsh index 142aaaf..81db073 100644 --- a/done.plugin.zsh +++ b/done.plugin.zsh @@ -9,7 +9,7 @@ if [ -z "$SSH_CLIENT" ]; then elif [ "${DONE_ALLOW_NONGRAPHICAL:-0}" -ne 0 ] && (( ${+functions[done_send_notification]} )); then : # Or if the user really wants us to else - # Exit early if otherwise + # Exit early otherwise return fi From c9c00b491a79d4de2c2166cafade6b3a30249d58 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Thu, 15 Feb 2024 16:29:11 +0000 Subject: [PATCH 2/4] done: fix ignored command We want to see if `$DONE_EXCLUDE` *matches* the command... --- done.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/done.plugin.zsh b/done.plugin.zsh index 81db073..5cd643d 100644 --- a/done.plugin.zsh +++ b/done.plugin.zsh @@ -120,7 +120,7 @@ __done_is_ignored_command() { return 1 fi # shellcheck disable=2154 - printf '%s' "$__done_last_command" | grep -q -v -P "$DONE_EXCLUDE" + printf '%s' "$__done_last_command" | grep -q -P "$DONE_EXCLUDE" } __done_notify() { From 74a2b355f6343bdbc5def33e555d07d0a2bc4e88 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Thu, 15 Feb 2024 16:31:18 +0000 Subject: [PATCH 3/4] nix: bump to v0.1.1 --- flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 1e94953..4485714 100644 --- a/flake.nix +++ b/flake.nix @@ -69,7 +69,7 @@ zsh-done = pkgs.stdenvNoCC.mkDerivation rec { pname = "zsh-done"; - version = "0.1.0"; + version = "0.1.1"; src = ./done.plugin.zsh; From 32f7c3801675c7d3137b9e922bbd2b687cf22e5b Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Thu, 15 Feb 2024 16:36:41 +0000 Subject: [PATCH 4/4] doc: fix typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cc34cec..240e137 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ DONE_MIN_CMD_DURATION=15 # Default: 5 Uses `grep -P` (Perl syntax) to filter out commands that should never notify. ```zsh -DONE_MIN_CMD_DURATION='^\sgit (?!push|pull|fetch)' # Default: '' +DONE_EXCLUDE='^\sgit (?!push|pull|fetch)' # Default: '' ``` ### Play a sound when sending notification