Created
March 19, 2020 08:28
-
-
Save dnknth/cfd41335d3e6f8a0cb83e7f229ee731d to your computer and use it in GitHub Desktop.
Terminal colors for bourne shell
This file contains hidden or 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
# See https://superuser.com/a/270241 | |
if [ -t 1 ] ; then | |
BLACK="\033[30m" | |
RED="\033[31m" | |
GREEN="\033[32m" | |
YELLOW="\033[33m" | |
BLUE="\033[34m" | |
MAGENTA="\033[35m" | |
CYAN="\033[36m" | |
WHITE="\033[37m" | |
BG_BLACK="\033[40m" | |
BG_RED="\033[41m" | |
BG_GREEN="\033[42m" | |
BG_YELLOW="\033[43m" | |
BG_BLUE="\033[44m" | |
BG_MAGENTA="\033[45m" | |
BG_CYAN="\033[46m" | |
BG_WHITE="\033[47m" | |
RESET="\033[0m" | |
BOLD="\033[1m" | |
CLEAR="$RESET\033[2J\033[1;1H" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment