Created
August 19, 2016 16:44
-
-
Save coaxial/e6198320d4b53a515a7822e8c87f453f to your computer and use it in GitHub Desktop.
TravisCI status in OS X menubar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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