Skip to content

Instantly share code, notes, and snippets.

@dbathily
Created August 14, 2013 20:49
Show Gist options
  • Save dbathily/6235441 to your computer and use it in GitHub Desktop.
Save dbathily/6235441 to your computer and use it in GitHub Desktop.
Colors your echo
NORMAL=$(tput sgr0)
GREEN=$(tput setaf 2; tput bold)
YELLOW=$(tput setaf 3)
RED=$(tput setaf 1)
function red() {
echo -e "$RED$*$NORMAL"
}
function green() {
echo -e "$GREEN$*$NORMAL"
}
function yellow() {
echo -e "$YELLOW$*$NORMAL"
}
# To print success
green "Task has been completed"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment