TheFox21 icon

Bash Color Codes

TheFox21 | PRO | 02/27/17 10:53:27 AM UTC | 0 ⭐ | 308 👁️ | Never ⏰ | []
Bash |

740 B

|

None

|

0 👍

/

0 👎

# Source: https://gitlab.com/gitlab-com/infrastructure/issues/1094
# No prefix = normal color
# B________ = bold color
# BG_______ = background color
BLACK='\[\e[0;30m\]'
BBLACK='\[\e[1;30m\]'
BGBLACK='\[\e[40m\]'
RED='\[\e[0;31m\]'
BRED='\[\e[1;31m\]'
BGRED='\[\e[41m\]'
GREEN='\[\e[0;32m\]'
BGREEN='\[\e[1;32m\]'
BGGREEN='\[\e[1;32m\]'
YELLOW='\[\e[0;33m\]'
BYELLOW='\[\e[1;33m\]'
BGYELLOW='\[\e[1;33m\]'
BLUE='\[\e[0;34m\]'
BBLUE='\[\e[1;34m\]'
BGBLUE='\[\e[1;34m\]'
MAGENTA='\[\e[0;35m\]'
BMAGENTA='\[\e[1;35m\]'
BGMAGENTA='\[\e[1;35m\]'
CYAN='\[\e[0;36m\]'
BCYAN='\[\e[1;36m\]'
BGCYAN='\[\e[1;36m\]'
WHITE='\[\e[0;37m\]' # This is the 'default' text color on a standard terminal
BWHITE='\[\e[1;37m\]'
BGWHITE='\[\e[1;37m\]'

Comments