My build of nnn with minor changes
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 
 
 

23 líneas
626 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. # Dependencies: notify-send (Ubuntu)/ntfy (https://github.com/dschep/ntfy)/osascript (macOS)/notify (Haiku)
  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. elif [ "$OS" = "Haiku" ]; then
  18. notify --title "nnn" "Done!"
  19. fi