Created
December 3, 2012 16:26
-
-
Save Radagaisus/4196080 to your computer and use it in GitHub Desktop.
✘ and ✓
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
# From yeoman's source code | |
# This prints the ✘ in red, | |
# rest in bold. | |
sad_print(){ | |
printf '\e[31m%s\e[0m \e[1m%s\e[0m %s\n' "✘" "$1" "$2" | |
} | |
# This prints ✓ in green, | |
# rest in bold. | |
happy_print(){ | |
printf '\e[32m%s\e[0m \e[1m%s\e[0m %s\n' "✓" "$1" "$2" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment