forked from magicmonty/bash-git-prompt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgit-prompt-colors.sh
More file actions
32 lines (26 loc) · 1.54 KB
/
git-prompt-colors.sh
File metadata and controls
32 lines (26 loc) · 1.54 KB
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
source rainbow-bash-prompt.sh
local Time12a="\$(date +%H:%M)"
local PathShort="\w"
local CommandNumber="\!"
local username="\u"
local hostname="\h"
# These are the color definitions used by gitprompt.sh
GIT_PROMPT_PREFIX="[" # start of the git info string
GIT_PROMPT_SUFFIX="]" # the end of the git info string
GIT_PROMPT_SEPARATOR="|" # separates each item
GIT_PROMPT_BRANCH="${IPURPLE}" # the git branch that is active in the current directory
GIT_PROMPT_STAGED="${GREEN}●" # the number of staged files/directories
GIT_PROMPT_CONFLICTS="${RED}✖" # the number of files in conflict
GIT_PROMPT_CHANGED="${ORANGE}✚" # the number of changed files
GIT_PROMPT_REMOTE=" " # the remote branch name (if any) and the symbols for ahead and behind
GIT_PROMPT_UNTRACKED="${YELLOW}…" # the number of untracked files/dirs
GIT_PROMPT_STASHED="${BoldBlue}⚑" # the number of stashed files/dir
GIT_PROMPT_CLEAN="${BoldGreen}✔" # a colored flag indicating a "clean" repo
GIT_PROMPT_START_USER=${RAINBOW_PROMPT}
GIT_PROMPT_START_ROOT=${GIT_PROMPT_START_USER}
GIT_PROMPT_END_USER=" \n`FABULOUS '≫'`${NO_COLOR} "
GIT_PROMPT_END_ROOT=${GIT_PROMPT_END_USER}
# Please do not add colors to these symbols
GIT_PROMPT_SYMBOLS_AHEAD="↑·" # The symbol for "n versions ahead of origin"
GIT_PROMPT_SYMBOLS_BEHIND="↓·" # The symbol for "n versions behind of origin"
GIT_PROMPT_SYMBOLS_PREHASH=":" # Written before hash of commit, if no name could be found