My build of nnn with minor changes
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 
 

21 lignes
543 B

  1. #!/usr/bin/env sh
  2. # Description: Show a notification
  3. #
  4. # Details: nnn invokes this plugin to show notification when a cp/mv/rm operation is complete.
  5. #
  6. # Requires: notify-send (Ubuntu)/ntfy (https://github.com/dschep/ntfy)/osascript (macOS)
  7. #
  8. # Shell: POSIX compliant
  9. # Author: Anna Arad
  10. OS="$(uname)"
  11. if which notify-send >/dev/null 2>&1; then
  12. notify-send nnn "Done!"
  13. elif [ "$OS" = "Darwin" ]; then
  14. osascript -e 'display notification "Done!" with title "nnn"'
  15. elif which ntfy >/dev/null 2>&1; then
  16. ntfy -t nnn send "Done!"
  17. fi