aboutsummaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
Diffstat (limited to 'functions')
-rw-r--r--functions/alert.fish9
1 files changed, 9 insertions, 0 deletions
diff --git a/functions/alert.fish b/functions/alert.fish
new file mode 100644
index 0000000..d4e17dc
--- /dev/null
+++ b/functions/alert.fish
@@ -0,0 +1,9 @@
+function alert --description 'Report status of command to desktop'
+
+ if test $status -eq 0
+ notify "✅ Done" (history | head -n1)
+ else
+ notify "❌ Failed" (history | head -n1)
+ end
+
+end