Commit graph

70 commits

Author SHA1 Message Date
f6c1f7fa35 auto-notify.plugin.zsh aktualisiert 2024-09-16 22:58:04 +02:00
86deef4ded auto-notify.plugin.zsh aktualisiert 2024-09-16 20:39:21 +02:00
81f5161390 auto-notify.plugin.zsh aktualisiert 2024-09-16 20:37:27 +02:00
e9ca099379 auto-notify.plugin.zsh aktualisiert 2024-09-16 20:35:51 +02:00
0a2b2f4601 auto-notify.plugin.zsh aktualisiert 2024-09-16 20:30:57 +02:00
8a328a37bd auto-notify.plugin.zsh aktualisiert 2024-09-16 20:30:05 +02:00
63f70f3c33 auto-notify.plugin.zsh aktualisiert
Changed Plugin to use ntfy instead of notify-send, to send events to phone.

Signed-off-by: eeleater <nikolasweger@googlemail.com>
2024-09-16 20:20:39 +02:00
Grafcube
76a527a66b
Add a comment explaining why 130 is treated as success 2024-07-08 19:53:44 +05:30
Grafcube
a79a412f3a
Treat code 130 as success 2024-06-16 00:21:26 +05:30
Michael Aquilina
837b81de92
bump version to 0.10.2 2024-05-13 11:12:38 +01:00
Michael Aquilina
6e5a54c5b5
use array argument expansion 2024-05-13 11:11:51 +01:00
Michael Aquilina
43dbc4eb56
bump version to 0.10.1 2024-05-13 10:54:40 +01:00
Michael Aquilina
0e4ed6b3c5
fix: correctly omit --icon from notify-send when not set 2024-05-13 10:48:41 +01:00
Michael Aquilina
452eee9454
bump version to 0.10.0 2024-04-24 13:25:36 +01:00
61825162+CaderIdris@users.noreply.github.com
8d61376a95
Fixed version number
Modified: Version number so ci tests pass
2024-04-23 12:51:59 +01:00
61825162+CaderIdris@users.noreply.github.com
a663a08bca
Bugfix: Order of arguments passed unit tests but caused invalid parsing
of expire time argument

Modified: How icon argument is called
2024-04-23 12:04:05 +01:00
61825162+CaderIdris@users.noreply.github.com
2c0059707f
Added icon support for linux
Added: AUTO_NOTIFY_ICON_SUCCESS environmental variable, represents path
to icon for notify-send to display on command success
Added: AUTO_NOTIFY_ICON_FAILURE environmental variable, represents path
to icon for notify-send to display on command failure
Added: --icon option when icon path is present for notify-send, no
additional argument added if environmental variable not specified
Modified: Version number to pass test
2024-04-23 11:15:09 +01:00
Dries De Peuter
f4afef6fa9
fix: mute notifications over ssh 2023-12-27 23:01:21 +01:00
Michael Aquilina
9b6bc124f0
fix: backwards compatible transient flag 2023-06-02 13:55:02 +01:00
Grafcube
5a50536e59
Fix transient argument
The transient variable must not be quoted. Otherwise the command fails
with `Invalid number of options.` for unsuccessful error codes.
2023-05-11 17:02:14 +05:30
Grafcube
9a9f8f21bb
Quote transient 2023-04-27 21:12:11 +05:30
Grafcube
8418a6e3b2
Make notifications transient if successful 2023-04-04 12:38:28 +05:30
Jacob Birkett
86849ede2a Fix config being overwritten when source 2022-01-27 18:05:20 -07:00
Michael Aquilina
f8cd00f2b6
Bump version to 0.8.0 2019-09-06 09:58:23 +01:00
Avi Dessauer
68fed1af8b Notify app-name=zsh 2019-09-05 18:27:38 -04:00
Michael Aquilina
67df6534c0
Bump version to 0.7.0 2019-08-26 12:28:13 +01:00
Michael Aquilina
cbd4e2bcac
Remove sudo prefix from command if detected 2019-08-26 12:25:43 +01:00
Michael Aquilina
a77777987d
Add support for specifying a WHITELIST 2019-08-24 21:36:35 +01:00
Michael Aquilina
0b7a039689
Bump version to 0.6.0 2019-08-17 16:50:58 +01:00
Michael Aquilina
5c39901fc7
Print warning if notify-send is a missing dependency 2019-08-17 16:46:36 +01:00
Michael Aquilina
c029e8e4c1
Bump to version 0.5.1 2019-08-01 13:40:03 +01:00
Dmytro Meleshko
4a9e4b8e03 Improve notifications on macOS 2019-08-01 11:25:31 +03:00
Michael Aquilina
2292476f93
Fix minor bug in _is_auto_notify_ignored 2019-07-31 15:53:33 +01:00
Michael Aquilina
7721d45abe
Bump version to 0.5.0 2019-07-31 13:37:47 +01:00
Michael Aquilina
aed7176e73
Add support for custom message formats 2019-07-31 13:37:42 +01:00
Michael Aquilina
9596b87899
Bump version to 0.4.0 2019-07-21 21:56:02 +01:00
Michael Aquilina
cac8315195
Improvements to notification formatting and options 2019-07-21 21:50:45 +01:00
Michael Aquilina
7b6d59479a
Rename main test file to test_plugin.zunit 2019-07-20 21:34:17 +01:00
Michael Aquilina
5c2ad8bd7a
Bump version to 0.3.0 2019-07-18 10:33:46 +01:00
Lars Vierbergen
a9f9d22034 In some zsh setups, when history is disabled, $1 is always empty.
When history is disabled, $1 is always empty, but the command is present in $2 and $3.
To get at least some functionality, although commands without aliases expanded are not available now, use $2 when $1 is empty.
2019-07-18 07:07:56 +02:00
Michael Aquilina
bd9fb1c60c
Bump version to 0.2.0 2019-07-17 21:41:38 +01:00
Michael Aquilina
890236ced9
Rename reset_tracking and move function 2019-07-17 21:39:08 +01:00
Michael Aquilina
bf73292fd0
Improve tracking code and add more tests 2019-07-17 21:36:30 +01:00
Michael Aquilina
dd81b6c8f7
Merge pull request #9 from vierbergenlars/clear-after-end
Clear AUTO_COMMAND in the precmd hook
2019-07-17 21:17:20 +01:00
Lars Vierbergen
64855fba1c Clear AUTO_COMMAND in the precmd hook.
precmd is always triggered before a new prompt is returned, but preexec is only called before an actual command is executed.
This means that using builtins (or using ^C or enter) on an empty commandline will result in a new notification for the previous command that has already completed before.
2019-07-17 22:12:03 +02:00
Michael Aquilina
8ec1400032
Handle piped commands 2019-07-17 17:08:26 +01:00
Michael Aquilina
51656c43c7
text should also be local 2019-07-17 16:21:15 +01:00
Michael Aquilina
3da571b84d
Set platform variable to local 2019-07-17 16:18:33 +01:00
Michael Aquilina
f70c3a654e
Simplify Mac OSX quote workaround 2019-07-17 16:17:03 +01:00
Toshiki Murayama
22998c6f4a
Escape backslash in notification message for macOS 2019-07-17 10:30:40 +09:00