forked from nycksw/ocd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bash_prompts
24 lines (20 loc) · 1015 Bytes
/
.bash_prompts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
### ereet prompt
# color escape sequences:
#
# Black 0;30 Dark Gray 1;30
# Blue 0;34 Light Blue 1;34
# Green 0;32 Light Green 1;32
# Cyan 0;36 Light Cyan 1;36
# Red 0;31 Light Red 1;31
# Purple 0;35 Light Purple 1;35
# Brown 0;33 Yellow 1;33
# Light Gray 0;37 White 1;37
C0="\[\e[0m\]"
C1="\[\e[1;30m\]"
C2="\[\e[1;37m\]"
C3="\[\e[1;33m\]"
C4="\[\e[1;30m\]"
PROMPT='\$' # regular users get a dollar sign
[ "$UID" == "0" ] && PROMPT='#' # superuser gets a hash
export PS1="\n $C2\u$C1@$C3\$(hostname|cut -f1-2 -d.)$C1($C2\!$C1):$C2\w$C1:$C3$C1 $C4\n$C1$PROMPT$C0 "
export PS2="... "