From 51656c43c75fb4b5546b3f41ea68c966ee34f2b3 Mon Sep 17 00:00:00 2001 From: Michael Aquilina Date: Wed, 17 Jul 2019 16:21:15 +0100 Subject: [PATCH] text should also be local --- auto-notify.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auto-notify.plugin.zsh b/auto-notify.plugin.zsh index fd92049..ebde281 100644 --- a/auto-notify.plugin.zsh +++ b/auto-notify.plugin.zsh @@ -19,7 +19,7 @@ function _auto_notify_message() { local elapsed="$2" local platform="$(uname)" # Run using echo -e in order to make sure notify-send picks up new line - text="$(echo -e "\"$command\" has completed\n(Total time: $elapsed seconds)")" + local text="$(echo -e "\"$command\" has completed\n(Total time: $elapsed seconds)")" if [[ "$platform" == "Linux" ]]; then notify-send "$text"