mirror of
https://github.com/philippdieter/zsh-auto-notify.git
synced 2025-10-13 12:08:21 +00:00
Set platform variable to local
This commit is contained in:
parent
f70c3a654e
commit
3da571b84d
@ -17,9 +17,9 @@ export AUTO_NOTIFY_IGNORE=(
|
|||||||
function _auto_notify_message() {
|
function _auto_notify_message() {
|
||||||
local command="$1"
|
local command="$1"
|
||||||
local elapsed="$2"
|
local elapsed="$2"
|
||||||
|
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)")"
|
text="$(echo -e "\"$command\" has completed\n(Total time: $elapsed seconds)")"
|
||||||
platform="$(uname)"
|
|
||||||
|
|
||||||
if [[ "$platform" == "Linux" ]]; then
|
if [[ "$platform" == "Linux" ]]; then
|
||||||
notify-send "$text"
|
notify-send "$text"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user