-
Notifications
You must be signed in to change notification settings - Fork 4
/
.bash_prompt
39 lines (37 loc) · 917 Bytes
/
.bash_prompt
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
if tput setaf 1 &> /dev/null; then
tput sgr0
if [[ $(tput colors) -ge 256 ]] 2>/dev/null; then
BLUE=$(tput setaf 172)
GREEN=$(tput setaf 190)
PURPLE=$(tput setaf 141)
WHITE=$(tput setaf 0)
RED=$(tput setaf 9)
YELLOW=$(tput setaf 11)
else
BLUE=$(tput setaf 4)
GREEN=$(tput setaf 2)
PURPLE=$(tput setaf 5)
WHITE=$(tput setaf 7)
RED=$(tput setaf 1)
YELLOW=$(tput setaf 3)
fi
BOLD=$(tput bold)
RESET=$(tput sgr0)
else
BLUE="\e[0;34m"
GREEN="\e[0;32m"
PURPLE="\e[0;35m"
WHITE="\e[0;37m"
RED="\e[0;31m"
YELLOW="\e[0;33m"
BOLD="\e[1m"
RESET="\e[0m"
fi
export MAGENTA
export BLUE
export GREEN
export PURPLE
export WHITE
export BOLD
export RESET
export PS1="\[${BOLD}${GREEN}\]\u\[$WHITE\] @ \[$BLUE\]\H\[$WHITE\]:\[$YELLOW\] \w \[$WHITE\]\[$RED\]ϟ \[$WHITE\]\[$RESET\]"