-
Notifications
You must be signed in to change notification settings - Fork 3
/
Single_line_simotek.bgptheme
50 lines (40 loc) · 1.64 KB
/
Single_line_simotek.bgptheme
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
# This is a theme for gitprompt.sh,
# it uses the default openSUSE bash prompt style with exit status
override_git_prompt_colors() {
HOST_COLOR=$PMT_BRed
if [ "$HOSTNAME" == "Simotek-Top.site" ]; then
HOST_COLOR=$PMT_IBlue
fi
if [ "$HOSTNAME" == "host2" ]; then
HOST_COLOR=$PMT_Yellow
fi
if [ "$HOSTNAME" == "hostshouldntchangestuff" ]; then
HOST_COLOR=$PMT_BIRed
fi
if [ "$HOSTNAME" == "host4" ]; then
HOST_COLOR=$PMT_ICyan
fi
if [ "$HOSTNAME" == "host5" ]; then
HOST_COLOR=$PMT_Green
fi
# from https://github.com/magicmonty/bash-git-prompt
GIT_PROMPT_THEME_NAME="Single_line_simotek"
GIT_PROMPT_BRANCH="${Green}"
GIT_PROMPT_UNTRACKED=" ${Yellow}…${ResetColor}"
GIT_PROMPT_CHANGED="${BrightCyan}✚"
GIT_PROMPT_STAGED="${BrightMagenta}●"
GIT_PROMPT_PREFIX="${Magenta}[${ResetColor}" # start of the git info string
GIT_PROMPT_SUFFIX="${Magenta}]${ResetColor}" # the end of the git info string
GIT_PROMPT_SEPARATOR="${Magenta}|${ResetColor}" # separates each item
#GIT_PROMPT_START_USER="_LAST_COMMAND_INDICATOR_ ${ResetColor}\u@\h:\w"
GIT_PROMPT_START_ROOT="_LAST_COMMAND_INDICATOR_ ${BoldRed}\h:\w"
GIT_PROMPT_END_USER="$PMT_Purple > ${ResetColor}"
GIT_PROMPT_END_ROOT=" # ${ResetColor}"
# I made it like a normal prompt and added HISET support
GIT_PROMPT_START_USER=$PMT_IGreen'\u'$PMT_Color_Off$PMT_Purple@$PMT_Color_Off$HOST_COLOR'\h'$PMT_Color_Off$PMT_Purple'$(\
if [ -n "$HISET" ]; then \
echo " ['$PMT_ICyan'$HISET'$PMT_Color_Off$PMT_Purple']"; \
fi \
)'"$PMT_Color_Off $PMT_BYellow$PathShort$PMT_Color_Off$PMT_Purple"
}
reload_git_prompt_colors "Single_line_simotek"