Compare commits

...

4 commits
v0.1.0 ... main

Author SHA1 Message Date
32f7c38016 doc: fix typo
All checks were successful
ci/woodpecker/push/check Pipeline was successful
2024-02-15 16:36:41 +00:00
74a2b355f6 nix: bump to v0.1.1 2024-02-15 16:31:18 +00:00
c9c00b491a done: fix ignored command
We want to see if `$DONE_EXCLUDE` *matches* the command...
2024-02-15 16:29:11 +00:00
f63a0bb425 done: fix typo
All checks were successful
ci/woodpecker/push/check Pipeline was successful
2023-08-13 15:49:49 +01:00
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.
```zsh
DONE_MIN_CMD_DURATION='^\sgit (?!push|pull|fetch)' # Default: ''
DONE_EXCLUDE='^\sgit (?!push|pull|fetch)' # Default: ''
```
### 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
: # Or if the user really wants us to
else
# Exit early if otherwise
# Exit early otherwise
return
fi
@ -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() {

View file

@ -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;