forked from jsg2021/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
prompt
79 lines (71 loc) · 2.1 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
RESET="\[\017\]"
# define colors
C_DEFAULT="\[\033[m\]"
C_WHITE="\[\033[1m\]"
C_BLACK="\[\033[30m\]"
C_RED="\[\033[31m\]"
C_GREEN="\[\033[32m\]"
C_YELLOW="\[\033[33m\]"
C_BLUE="\[\033[34m\]"
C_PURPLE="\[\033[35m\]"
C_CYAN="\[\033[36m\]"
C_LIGHTGRAY="\[\033[37m\]"
C_DARKGRAY="\[\033[1;30m\]"
C_LIGHTRED="\[\033[1;31m\]"
C_LIGHTGREEN="\[\033[1;32m\]"
C_LIGHTYELLOW="\[\033[1;33m\]"
C_LIGHTBLUE="\[\033[1;34m\]"
C_LIGHTPURPLE="\[\033[1;35m\]"
C_LIGHTCYAN="\[\033[1;36m\]"
C_BG_BLACK="\[\033[40m\]"
C_BG_RED="\[\033[41m\]"
C_BG_GREEN="\[\033[42m\]"
C_BG_YELLOW="\[\033[43m\]"
C_BG_BLUE="\[\033[44m\]"
C_BG_PURPLE="\[\033[45m\]"
C_BG_CYAN="\[\033[46m\]"
C_BG_LIGHTGRAY="\[\033[47m\]"
export CLICOLOR=1
export LSCOLORS=exFxBxDxCxexexabagacad
# LSCOLORS needs 11 sets of letters indicating foreground and background colors:
# 1 directory
# 2 symbolic link
# 3 socket
# 4 pipe
# 5 executable
# 6 block special
# 7 character special
# 8 executable with setuid bit set
# 9 executable with setgid bit set
# 10 directory writable to others, with sticky bit
# 11 directory writable to others, without sticky bit
# The possible letters to use are:
# a black
# b red
# c green
# d brown
# e blue
# f magenta
# c cyan
# h light grey
# A block black, usually shows up as dark grey
# B bold red
# C bold green
# D bold brown, usually shows up as yellow
# E bold blue
# F bold magenta
# G bold cyan
# H bold light grey; looks like bright white
# x default foreground or background
export GIT_PS1_SHOWCOLORHINTS=true
export GIT_PS1_SHOWDIRTYSTATE=true
export GIT_PS1_SHOWSTASHSTATE=true
# export GIT_PS1_SHOWUNTRACKEDFILES=true
# export GIT_PS1_SHOWUPSTREAM="auto"
export GIT_PS1_DESCRIBE_STYLE="branch"
#curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh -o ~/.dotfiles/git-prompt.sh
if [ -f ~/.dotfiles/git-prompt.sh ]; then
. ~/.dotfiles/git-prompt.sh
fi
#export PS1="$C_GREEN\h$C_DEFAULT:$C_BLUE\W $C_DARKGRAY\u$C_LIGHTGREEN\$$C_DEFAULT "
export PS1="${RESET}${C_LIGHTGREEN}\u$C_DARKGRAY@$C_LIGHTBLUE\h$C_DARKGRAY: $C_LIGHTYELLOW\w $C_LIGHTPURPLE\$(__git_ps1 \"(%s)\")$C_DARKGRAY\$$C_DEFAULT "