summaryrefslogtreecommitdiff
path: root/.config/nnn/plugins/.ntfy
diff options
context:
space:
mode:
authoryuzu-eva <stevenhu@web.de>2023-05-07 09:42:28 +0200
committeryuzu-eva <stevenhu@web.de>2023-05-07 09:42:28 +0200
commit9a3d9c575c85e8b9bed8afb64afde22ebfef5b8f (patch)
tree0ed41b3476a224b9092b2ecbe5f3c9be13279e2a /.config/nnn/plugins/.ntfy
parentb85d2ad65904ae00410e1b7e019be32c44c8e51e (diff)
cleaned up a bit
Diffstat (limited to '.config/nnn/plugins/.ntfy')
-rwxr-xr-x.config/nnn/plugins/.ntfy22
1 files changed, 0 insertions, 22 deletions
diff --git a/.config/nnn/plugins/.ntfy b/.config/nnn/plugins/.ntfy
deleted file mode 100755
index 2a61478..0000000
--- a/.config/nnn/plugins/.ntfy
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/usr/bin/env sh
-
-# Description: Show a notification
-#
-# Details: nnn invokes this plugin to show notification when a cp/mv/rm operation is complete.
-#
-# Dependencies: notify-send (Ubuntu)/ntfy (https://github.com/dschep/ntfy)/osascript (macOS)/notify (Haiku)
-#
-# Shell: POSIX compliant
-# Author: Anna Arad
-
-OS="$(uname)"
-
-if type notify-send >/dev/null 2>&1; then
- notify-send nnn "Done!"
-elif [ "$OS" = "Darwin" ]; then
- osascript -e 'display notification "Done!" with title "nnn"'
-elif type ntfy >/dev/null 2>&1; then
- ntfy -t nnn send "Done!"
-elif [ "$OS" = "Haiku" ]; then
- notify --title "nnn" "Done!"
-fi