diff options
| author | Deposite Pirate | 2025-10-04 21:38:38 +0200 |
|---|---|---|
| committer | Deposite Pirate | 2025-10-04 21:38:38 +0200 |
| commit | 1837e920fca81193f94cb4204f5ab08fcbda56d1 (patch) | |
| tree | 3aa5374546329c30419e509c251118c1bd5979c6 /functions/alert.fish | |
| parent | 0e5db78149230f467e0bde810a45baba3de1209f (diff) | |
Add alert function to notify on the desktop of
command status
new file: functions/alert.fish
Diffstat (limited to 'functions/alert.fish')
| -rw-r--r-- | functions/alert.fish | 9 |
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 |
