TheFox21

Bash Color Codes

Feb 27th, 2017
363
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.74 KB | None | 0 0
  1. # Source: https://gitlab.com/gitlab-com/infrastructure/issues/1094
  2. # No prefix = normal color
  3. # B________ = bold color
  4. # BG_______ = background color
  5. BLACK='\[\e[0;30m\]'
  6. BBLACK='\[\e[1;30m\]'
  7. BGBLACK='\[\e[40m\]'
  8. RED='\[\e[0;31m\]'
  9. BRED='\[\e[1;31m\]'
  10. BGRED='\[\e[41m\]'
  11. GREEN='\[\e[0;32m\]'
  12. BGREEN='\[\e[1;32m\]'
  13. BGGREEN='\[\e[1;32m\]'
  14. YELLOW='\[\e[0;33m\]'
  15. BYELLOW='\[\e[1;33m\]'
  16. BGYELLOW='\[\e[1;33m\]'
  17. BLUE='\[\e[0;34m\]'
  18. BBLUE='\[\e[1;34m\]'
  19. BGBLUE='\[\e[1;34m\]'
  20. MAGENTA='\[\e[0;35m\]'
  21. BMAGENTA='\[\e[1;35m\]'
  22. BGMAGENTA='\[\e[1;35m\]'
  23. CYAN='\[\e[0;36m\]'
  24. BCYAN='\[\e[1;36m\]'
  25. BGCYAN='\[\e[1;36m\]'
  26. WHITE='\[\e[0;37m\]' # This is the 'default' text color on a standard terminal
  27. BWHITE='\[\e[1;37m\]'
  28. BGWHITE='\[\e[1;37m\]'
Advertisement
Add Comment
Please, Sign In to add comment