Skip to content

Instantly share code, notes, and snippets.

@coaxial
Created August 19, 2016 16:44
Show Gist options
  • Save coaxial/e6198320d4b53a515a7822e8c87f453f to your computer and use it in GitHub Desktop.
Save coaxial/e6198320d4b53a515a7822e8c87f453f to your computer and use it in GitHub Desktop.
TravisCI status in OS X menubar
#!/usr/bin/env bash
# Requires AnyBar (https://github.com/tonsky/AnyBar) and hub (https://github.com/github/hub)#!/usr/bin/env bash
# Checks the ci-status on GitHub and changes the dot color accordingly
alias ciw='while true; do if [ "$(hub ci-status)" == "pending" ]; then echo -n "orange" | nc -4u -w0 localhost 1738; elif [ "$(hub ci-status)" == "success" ]; then echo -n "green" | nc -4u -w0 localhost 1738; break; else echo -n "red" | nc -4u -w0 localhost 1738; fi; sleep 5; done &'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment