-
Notifications
You must be signed in to change notification settings - Fork 7
/
.bash_profile__colors
40 lines (38 loc) · 1.14 KB
/
.bash_profile__colors
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
##############
### COLORS ###
##############
# Change the prompt color using tput
# http://www.thegeekstuff.com/2008/09/bash-shell-ps1-10-examples-to-make-your-linux-prompt-like-angelina-jolie/
# Set a background color using ANSI escape
SETAB_BLACK=$(tput setab 0)
SETAB_RED=$(tput setab 1)
SETAB_GREEN=$(tput setab 2)
SETAB_YELLOW=$(tput setab 3)
SETAB_BLUE=$(tput setab 4)
SETAB_MAGENTA=$(tput setab 5)
SETAB_CYAN=$(tput setab 6)
SETAB_GRAY=$(tput setab 7)
# Set a foreground color using ANSI escape
SETAF_BLACK=$(tput setaf 0)
SETAF_RED=$(tput setaf 1)
SETAF_GREEN=$(tput setaf 2)
SETAF_YELLOW=$(tput setaf 3)
SETAF_BLUE=$(tput setaf 4)
SETAF_MAGENTA=$(tput setaf 5)
SETAF_CYAN=$(tput setaf 6)
SETAF_GRAY=$(tput setaf 7)
#
COLOR_ESC="\033"
COLOR_NORMAL=$COLOR_ESC"[0;0m"
COLOR_RED=$COLOR_ESC"[0;31m"
COLOR_ALT_RED=$COLOR_ESC"[1;31m"
COLOR_GREEN=$COLOR_ESC"[0;32m"
COLOR_ALT_GREEN=$COLOR_ESC"[1;32m"
COLOR_YELLOW=$COLOR_ESC"[0;33m"
COLOR_ALT_YELLOW=$COLOR_ESC"[1;33m"
COLOR_BLUE=$COLOR_ESC"[0;34m"
COLOR_ALT_BLUE=$COLOR_ESC"[1;34m"
COLOR_MAGENTA="$COLOR_ESC[0;35m"
COLOR_ALT_MAGENTA="$COLOR_ESC[1;35m"
COLOR_CYAN="$COLOR_ESC[0;36m"
COLOR_ALT_CYAN="$COLOR_ESC[1;36m"