Skip to content

Instantly share code, notes, and snippets.

@jbruggem
Created May 4, 2018 06:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jbruggem/3688bb0c778bbe030941f411f8dbe9ab to your computer and use it in GitHub Desktop.
Save jbruggem/3688bb0c778bbe030941f411f8dbe9ab to your computer and use it in GitHub Desktop.
# use after a long running task to be notified using notify-send
# e.g.: `./tests.sh; notifydone`
alias notifydone="RES=\$?; while true; do echo \"done. Return value: \${RES}. Ctrl-C to stop notifications\"; notify-send 'Run ended' \"Execution return val: \${RES}\"; sleep 60; done"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment