You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

4 years ago
123456789101112
  1. #!/bin/sh
  2. #
  3. # pbrisbin 2014 - details:
  4. #
  5. # - http://blog.adamspiers.org/2014/10/05/managing-your-github-notifications-inbox-with-mutt/
  6. # - https://github.com/aspiers/mutt.pub/blob/master/bin/read-github-notification
  7. #
  8. ###
  9. beacon_re='https://github\.com/notifications/beacon/.*\.gif'
  10. beacon_url="$(tr -d '\n' | grep -o "$beacon_re")"
  11. [ -n "$beacon_url" ] && curl --silent "$beacon_url" >/dev/null &