summaryrefslogtreecommitdiff
path: root/.zsh_functions/alert
diff options
context:
space:
mode:
Diffstat (limited to '.zsh_functions/alert')
-rw-r--r--.zsh_functions/alert1
1 files changed, 1 insertions, 0 deletions
diff --git a/.zsh_functions/alert b/.zsh_functions/alert
new file mode 100644
index 0000000..1f3c065
--- /dev/null
+++ b/.zsh_functions/alert
@@ -0,0 +1 @@
+notify-send --urgency=low -i ${(%):-%(?.terminal.error)} ${history[$HISTCMD]%[;&|][[:space:]]##alert}