-
-
Save davidhemphill/e23855fd1ee6b864c6ab202a91705b27 to your computer and use it in GitHub Desktop.
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
alias phpunit='function __phpunit() { | |
OUTPUT="$(blink1-tool --list)" | |
EXPECTED="no blink(1) devices found" | |
if [ "$OUTPUT" = "$EXPECTED" ] | |
then | |
phpunit "$@" | |
else | |
blink1-tool --blue && phpunit "$@" && blink1-tool --green && afplay ~/Music/godlike.mp3 || blink1-tool --red | |
fi | |
}; __phpunit' |
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
alias phpunit='function __phpunit() { | |
OUTPUT="$(blink1-tool --list)" | |
EXPECTED="no blink(1) devices found" | |
if [ "$OUTPUT" = "$EXPECTED" ] | |
then | |
phpunit "$@" | |
else | |
blink1-tool --blue && phpunit "$@" && blink1-tool --green || blink1-tool --red | |
fi | |
}; __phpunit' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment