From 1837e920fca81193f94cb4204f5ab08fcbda56d1 Mon Sep 17 00:00:00 2001 From: Deposite Pirate Date: Sat, 4 Oct 2025 21:38:38 +0200 Subject: Add alert function to notify on the desktop of command status new file: functions/alert.fish --- functions/alert.fish | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 functions/alert.fish (limited to 'functions/alert.fish') 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 -- cgit v1.3.1