Created
December 7, 2018 17:50
-
-
Save infamousjoeg/305a217d9bfd78ca355a1e31c8594158 to your computer and use it in GitHub Desktop.
BashColors created by infamousjoeg - https://repl.it/@infamousjoeg/BashColors
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
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