Advertisement
kator

Colors.sh

Jan 31st, 2019
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.70 KB | None | 0 0
  1. #!/bin/bash
  2. # echo Executting colors
  3. # Reset
  4. export Reset='\033[0m'       # Text Reset
  5.  
  6. export Bold='\033[1m'
  7.  
  8. # Regular Colors
  9. export Black='\033[0;30m'        # Black
  10. export Red='\033[0;31m'          # Red
  11. export Green='\033[0;32m'        # Green
  12. export Yellow='\033[0;33m'       # Yellow
  13. export Blue='\033[0;34m'         # Blue
  14. export Purple='\033[0;35m'       # Purple
  15. export Cyan='\033[0;36m'         # Cyan
  16. export White='\033[0;37m'        # White
  17.  
  18. # Bold
  19. export BBlack='\033[1;30m'       # Black
  20. export BRed='\033[1;31m'         # Red
  21. export BGreen='\033[1;32m'       # Green
  22. export BYellow='\033[1;33m'      # Yellow
  23. export BBlue='\033[1;34m'        # Blue
  24. export BPurple='\033[1;35m'      # Purple
  25. export BCyan='\033[1;36m'        # Cyan
  26. export BWhite='\033[1;37m'       # White
  27.  
  28. # Underline
  29. export UBlack='\033[4;30m'       # Black
  30. export URed='\033[4;31m'         # Red
  31. export UGreen='\033[4;32m'       # Green
  32. export UYellow='\033[4;33m'      # Yellow
  33. export UBlue='\033[4;34m'        # Blue
  34. export UPurple='\033[4;35m'      # Purple
  35. export UCyan='\033[4;36m'        # Cyan
  36. export UWhite='\033[4;37m'       # White
  37.  
  38. # Background
  39. export On_Black='\033[40m'       # Black
  40. export On_Red='\033[41m'         # Red
  41. export On_Green='\033[42m'       # Green
  42. export On_Yellow='\033[43m'      # Yellow
  43. export On_Blue='\033[44m'        # Blue
  44. export On_Purple='\033[45m'      # Purple
  45. export On_Cyan='\033[46m'        # Cyan
  46. export On_White='\033[47m'       # White
  47.  
  48. # High Intensity
  49. export IBlack='\033[0;90m'       # Black
  50. export IRed='\033[0;91m'         # Red
  51. export IGreen='\033[0;92m'       # Green
  52. export IYellow='\033[0;93m'      # Yellow
  53. export IBlue='\033[0;94m'        # Blue
  54. export IPurple='\033[0;95m'      # Purple
  55. export ICyan='\033[0;96m'        # Cyan
  56. export IWhite='\033[0;97m'       # White
  57.  
  58. # Bold High Intensity
  59. export BIBlack='\033[1;90m'      # Black
  60. export BIRed='\033[1;91m'        # Red
  61. export BIGreen='\033[1;92m'      # Green
  62. export BIYellow='\033[1;93m'     # Yellow
  63. export BIBlue='\033[1;94m'       # Blue
  64. export BIPurple='\033[1;95m'     # Purple
  65. export BICyan='\033[1;96m'       # Cyan
  66. export BIWhite='\033[1;97m'      # White
  67.  
  68. # High Intensity backgrounds
  69. export On_IBlack='\033[0;100m'   # Black
  70. export On_IRed='\033[0;101m'     # Red
  71. export On_IGreen='\033[0;102m'   # Green
  72. export On_IYellow='\033[0;103m'  # Yellow
  73. export On_IBlue='\033[0;104m'    # Blue
  74. export On_IPurple='\033[0;105m'  # Purple
  75. export On_ICyan='\033[0;106m'    # Cyan
  76. export On_IWhite='\033[0;107m'   # White
  77.  
  78. # https://stackoverflow.com/questions/5947742/how-to-change-the-output-color-of-echo-in-linux
  79. #
  80. # Examples
  81. # echo -e "${Green} Colors by ${IGreen} Kator ${Reset}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement