-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcolors.sh
41 lines (35 loc) · 978 Bytes
/
colors.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/env bash
# This script is used to define colors for bash scripts
# GitHub: https://github.com/OzzyCzech/colors.sh
# Author: Roman Ožana <[email protected]>
# License: MIT
# Black and white
export BLACK='\033[0;30m'
export WHITE='\033[0;37m'
export GRAY='\033[0;90m'
export NC='\033[0m' # reset color
# Basic colors
export RED='\033[0;31m'
export GREEN='\033[0;32m'
export BLUE='\033[0;34m'
export YELLOW='\033[0;33m'
export MAGENTA='\033[0;35m'
export CYAN='\033[0;36m'
# Bright colors
export BRIGHT_RED='\033[0;91m'
export BRIGHT_GREEN='\033[0;92m'
export BRIGHT_BLUE='\033[0;94m'
export BRIGHT_YELLOW='\033[0;93m'
export BRIGHT_MAGENTA='\033[0;95m'
export BRIGHT_CYAN='\033[0;96m'
# Bold colors
export BOLD_RED='\033[1;31m'
export BOLD_GREEN='\033[1;32m'
export BOLD_BLUE='\033[1;34m'
export BOLD_YELLOW='\033[1;33m'
export BOLD_MAGENTA='\033[1;35m'
export BOLD_CYAN='\033[1;36m'
# Styles
export BOLD='\033[1m'
export UNDERLINE='\033[4m'
export BLINK='\033[5m'