Last active
December 15, 2015 09:38
-
-
Save puckbag/5239465 to your computer and use it in GitHub Desktop.
Prompt colors for Bash.
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
# https://wiki.archlinux.org/index.php/Color_Bash_Prompt#List_of_colors_for_prompt_and_Bash | |
# Reset | |
COLOR_OFF='\[\e[0m\]' # Text Reset | |
# Regular Colors | |
COLOR_BLACK='\[\e[0;30m\]' # Black | |
COLOR_RED='\[\e[0;31m\]' # Red | |
COLOR_GREEN='\[\e[0;32m\]' # Green | |
COLOR_YELLOW='\[\e[0;33m\]' # Yellow | |
COLOR_BLUE='\[\e[0;34m\]' # Blue | |
COLOR_PURPLE='\[\e[0;35m\]' # Purple | |
COLOR_CYAN='\[\e[0;36m\]' # Cyan | |
COLOR_WHITE='\[\e[0;37m\]' # White | |
# Bold | |
COLOR_BBLACK='\[\e[1;30m\]' # Black | |
COLOR_BRED='\[\e[1;31m\]' # Red | |
COLOR_BGREEN='\[\e[1;32m\]' # Green | |
COLOR_BYELLOW='\[\e[1;33m\]' # Yellow | |
COLOR_BBLUE='\[\e[1;34m\]' # Blue | |
COLOR_BPURPLE='\[\e[1;35m\]' # Purple | |
COLOR_BCYAN='\[\e[1;36m\]' # Cyan | |
COLOR_BWHITE='\[\e[1;37m\]' # White | |
# Underline | |
COLOR_UBLACK='\[\e[4;30m\]' # Black | |
COLOR_URED='\[\e[4;31m\]' # Red | |
COLOR_UGREEN='\[\e[4;32m\]' # Green | |
COLOR_UYELLOW='\[\e[4;33m\]' # Yellow | |
COLOR_UBLUE='\[\e[4;34m\]' # Blue | |
COLOR_UPURPLE='\[\e[4;35m\]' # Purple | |
COLOR_UCYAN='\[\e[4;36m\]' # Cyan | |
COLOR_UWHITE='\[\e[4;37m\]' # White | |
# Background | |
COLOR_ON_BLACK='\[\e[40m\]' # Black | |
COLOR_ON_RED='\[\e[41m\]' # Red | |
COLOR_ON_GREEN='\[\e[42m\]' # Green | |
COLOR_ON_YELLOW='\[\e[43m\]' # Yellow | |
COLOR_ON_BLUE='\[\e[44m\]' # Blue | |
COLOR_ON_PURPLE='\[\e[45m\]' # Purple | |
COLOR_ON_CYAN='\[\e[46m\]' # Cyan | |
COLOR_ON_WHITE='\[\e[47m\]' # White | |
# High Intensity | |
COLOR_IBLACK='\[\e[0;90m\]' # Black | |
COLOR_IRED='\[\e[0;91m\]' # Red | |
COLOR_IGREEN='\[\e[0;92m\]' # Green | |
COLOR_IYELLOW='\[\e[0;93m\]' # Yellow | |
COLOR_IBLUE='\[\e[0;94m\]' # Blue | |
COLOR_IPURPLE='\[\e[0;95m\]' # Purple | |
COLOR_ICYAN='\[\e[0;96m\]' # Cyan | |
COLOR_IWHITE='\[\e[0;97m\]' # White | |
# Bold High Intensity | |
COLOR_BIBLACK='\[\e[1;90m\]' # Black | |
COLOR_BIRED='\[\e[1;91m\]' # Red | |
COLOR_BIGREEN='\[\e[1;92m\]' # Green | |
COLOR_BIYELLOW='\[\e[1;93m\]' # Yellow | |
COLOR_BIBLUE='\[\e[1;94m\]' # Blue | |
COLOR_BIPURPLE='\[\e[1;95m\]' # Purple | |
COLOR_BICYAN='\[\e[1;96m\]' # Cyan | |
COLOR_BIWHITE='\[\e[1;97m\]' # White | |
# High Intensity backgrounds | |
COLOR_ON_IBLACK='\[\e[0;100m\]' # Black | |
COLOR_ON_IRED='\[\e[0;101m\]' # Red | |
COLOR_ON_IGREEN='\[\e[0;102m\]' # Green | |
COLOR_ON_IYELLOW='\[\e[0;103m\]' # Yellow | |
COLOR_ON_IBLUE='\[\e[0;104m\]' # Blue | |
COLOR_ON_IPURPLE='\[\e[0;105m\]' # Purple | |
COLOR_ON_ICYAN='\[\e[0;106m\]' # Cyan | |
COLOR_ON_IWHITE='\[\e[0;107m\]' # White |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment