Skip to content

Instantly share code, notes, and snippets.

@infamousjoeg
Created December 7, 2018 17:50
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 infamousjoeg/305a217d9bfd78ca355a1e31c8594158 to your computer and use it in GitHub Desktop.
Save infamousjoeg/305a217d9bfd78ca355a1e31c8594158 to your computer and use it in GitHub Desktop.
BashColors created by infamousjoeg - https://repl.it/@infamousjoeg/BashColors
print_red() {
RED='\033[0;31m'
NC='\033[0m' # No Color
printf "${RED}${1}${NC}\n"
}
print_orange() {
ORANGE='\033[0;33m'
NC='\033[0m' # No Color
echo -e "${ORANGE}${1}${NC}"
}
CYAN='\033[0;36m'
NC='\033[0m' # No Color
printf "${CYAN}Using printf:${NC}\n"
print_red "I <3 repl.it!"
echo -e "${CYAN}Using echo -e:${NC}"
print_orange "I <3 repl.it!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment