Skip to content

Instantly share code, notes, and snippets.

@thaont-0210
Forked from jonsuh/.bash_profile
Created June 17, 2020 07:19
Show Gist options
  • Save thaont-0210/f7a6ada929fc3e4f7c7da17837385b88 to your computer and use it in GitHub Desktop.
Save thaont-0210/f7a6ada929fc3e4f7c7da17837385b88 to your computer and use it in GitHub Desktop.
Bash echo in color
# ----------------------------------
# Colors
# ----------------------------------
NOCOLOR='\033[0m'
RED='\033[0;31m'
GREEN='\033[0;32m'
ORANGE='\033[0;33m'
BLUE='\033[0;34m'
PURPLE='\033[0;35m'
CYAN='\033[0;36m'
LIGHTGRAY='\033[0;37m'
DARKGRAY='\033[1;30m'
LIGHTRED='\033[1;31m'
LIGHTGREEN='\033[1;32m'
YELLOW='\033[1;33m'
LIGHTBLUE='\033[1;34m'
LIGHTPURPLE='\033[1;35m'
LIGHTCYAN='\033[1;36m'
WHITE='\033[1;37m'
alias whichpill='echo -e "You take the ${BLUE}blue pill${NOCOLOR}—the story ends, you wake up in bed and believe whatever you want to believe. You take the ${RED}red pill${NOCOLOR}—you stay in Wonderland, and I show you how deep the rabbit hole goes. Remember: all I’m offering is the ${YELLOW}truth${NOCOLOR}. Nothing more."';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment