From 68fed1af8b651d8986a03d8f6ecdfccc4e62556b Mon Sep 17 00:00:00 2001 From: Avi Dessauer Date: Thu, 5 Sep 2019 18:20:22 -0400 Subject: [PATCH 1/2] Notify app-name=zsh --- auto-notify.plugin.zsh | 2 +- tests/test_auto_notify_send.zunit | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/auto-notify.plugin.zsh b/auto-notify.plugin.zsh index a6c89d1..6d680cf 100644 --- a/auto-notify.plugin.zsh +++ b/auto-notify.plugin.zsh @@ -40,7 +40,7 @@ function _auto_notify_message() { if [[ "$exit_code" != "0" ]]; then urgency="critical" fi - notify-send "$title" "$body" "--urgency=$urgency" "--expire-time=$AUTO_NOTIFY_EXPIRE_TIME" + notify-send "$title" "$body" --app-name=zsh "--urgency=$urgency" "--expire-time=$AUTO_NOTIFY_EXPIRE_TIME" elif [[ "$platform" == "Darwin" ]]; then osascript \ -e 'on run argv' \ diff --git a/tests/test_auto_notify_send.zunit b/tests/test_auto_notify_send.zunit index 644fd7b..5704f6b 100644 --- a/tests/test_auto_notify_send.zunit +++ b/tests/test_auto_notify_send.zunit @@ -89,7 +89,7 @@ assert "$lines[1]" same_as 'Notification Title: "f bar -r" Completed' assert "$lines[2]" same_as "Notification Body: Total time: 20 seconds" assert "$lines[3]" same_as "Exit code: 0" - assert "$lines[4]" same_as "--urgency=normal --expire-time=15000" + assert "$lines[4]" same_as "--app-name=zsh --urgency=normal --expire-time=15000" } @test 'auto-notify-send sends notification on macOS' { From f8cd00f2b647d52aaaaf7fa400f512a495a6dcc8 Mon Sep 17 00:00:00 2001 From: Michael Aquilina Date: Fri, 6 Sep 2019 09:58:23 +0100 Subject: [PATCH 2/2] Bump version to 0.8.0 --- CHANGELOG.md | 4 ++++ auto-notify.plugin.zsh | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d104737..5387547 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ Changelog for zsh-auto-notify ============================= +0.8.0 +----- +* Change notify-send application title to `zsh` + 0.7.0 ----- * Allow alternate `AUTO_NOTIFY_WHITELIST` for specifying commands to allow diff --git a/auto-notify.plugin.zsh b/auto-notify.plugin.zsh index 6d680cf..5ed5c95 100644 --- a/auto-notify.plugin.zsh +++ b/auto-notify.plugin.zsh @@ -1,4 +1,4 @@ -export AUTO_NOTIFY_VERSION="0.7.0" +export AUTO_NOTIFY_VERSION="0.8.0" # Time it takes for a notification to expire export AUTO_NOTIFY_EXPIRE_TIME=8000