From 7b6d59479abad6848a3700363a0331e88fc6b166 Mon Sep 17 00:00:00 2001 From: Michael Aquilina Date: Sat, 20 Jul 2019 21:34:17 +0100 Subject: [PATCH] Rename main test file to test_plugin.zunit --- auto-notify.plugin.zsh | 3 +-- tests/{test_auto_notify.zunit => test_plugin.zunit} | 0 2 files changed, 1 insertion(+), 2 deletions(-) rename tests/{test_auto_notify.zunit => test_plugin.zunit} (100%) diff --git a/auto-notify.plugin.zsh b/auto-notify.plugin.zsh index 0944e38..be07099 100644 --- a/auto-notify.plugin.zsh +++ b/auto-notify.plugin.zsh @@ -86,11 +86,10 @@ function disable_auto_notify() { } function enable_auto_notify() { + autoload -Uz add-zsh-hook add-zsh-hook preexec _auto_notify_track add-zsh-hook precmd _auto_notify_send } -autoload -Uz add-zsh-hook - _auto_notify_reset_tracking enable_auto_notify diff --git a/tests/test_auto_notify.zunit b/tests/test_plugin.zunit similarity index 100% rename from tests/test_auto_notify.zunit rename to tests/test_plugin.zunit