A collection of scripts and configurations for Bash (and others)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
423B

  1. _CC() {
  2. local c="0;00"
  3. if [ "$1" ]; then
  4. c="0;${1}"
  5. fi
  6. echo -n "\[\033[${c}m\]"
  7. }
  8. NORMAL=$(_CC '00')
  9. BLACK=$(_CC '30')
  10. BLUE=$(_CC '34')
  11. CYAN=$(_CC '36')
  12. GREEN=$(_CC '32')
  13. PURPLE=$(_CC '35')
  14. RED=$(_CC '31')
  15. WHITE=$(_CC '37')
  16. YELLOW=$(_CC '33')
  17. BG_BLACK=$(_CC '40')
  18. BG_BLUE=$(_CC '44')
  19. BG_CYAN=$(_CC '46')
  20. BG_GREEN=$(_CC '42')
  21. BG_PURPLE=$(_CC '45')
  22. BG_RED=$(_CC '41')
  23. BG_WHITE=$(_CC '47')
  24. BG_YELLOW=$(_CC '43')