mirror of
https://github.com/philippdieter/zsh-auto-notify.git
synced 2025-10-13 20:10:00 +00:00
text should also be local
This commit is contained in:
parent
3da571b84d
commit
51656c43c7
@ -19,7 +19,7 @@ function _auto_notify_message() {
|
|||||||
local elapsed="$2"
|
local elapsed="$2"
|
||||||
local platform="$(uname)"
|
local platform="$(uname)"
|
||||||
# Run using echo -e in order to make sure notify-send picks up new line
|
# 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
|
if [[ "$platform" == "Linux" ]]; then
|
||||||
notify-send "$text"
|
notify-send "$text"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user