Skip to content

Instantly share code, notes, and snippets.

@Radagaisus
Created December 3, 2012 16:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Radagaisus/4196080 to your computer and use it in GitHub Desktop.
Save Radagaisus/4196080 to your computer and use it in GitHub Desktop.
✘ and ✓
# 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