Skip to content

Instantly share code, notes, and snippets.

View daveriess's full-sized avatar

DR daveriess

  • Wunder Capital
  • Earth
View GitHub Profile

Keybase proof

I hereby claim:

  • I am daveriess on github.
  • I am daveriess (https://keybase.io/daveriess) on keybase.
  • I have a public key whose fingerprint is BD71 09AD 4120 0D7D 66C9 6B36 E147 479B 78F8 73C8

To claim this, I am signing this object:

@daveriess
daveriess / command_alert.bash
Created November 6, 2013 04:26
OSX Command Alerts - send OSX notifications when long running commands complete requires terminal-notifier: https://github.com/alloy/terminal-notifier
#!/bin/bash
#
# OSX Command Alerts - notify when long running commands complete
#
# Uses preexec/precmd hooks by Glyph Lefkowitz
# - original: http://glyf.livejournal.com/63106.html
# - also here: https://twistedmatrix.com/users/glyph/preexec.bash.txt
#
# Define what constitutes long running (seconds)
export NOTIFY_DURATION=10