-
Notifications
You must be signed in to change notification settings - Fork 6
/
pretty-git-prompt.yml.bash
103 lines (103 loc) · 3.94 KB
/
pretty-git-prompt.yml.bash
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# version of configuration file
# right now it needs to be set to '1'
version: '1'
# configuration of various values (required), type dict
# if you omit a value, it won't be displayed
values:
# usually repository is in state 'clean' (which is not displayed)
# but it can also be in state like merge, rebase, cherry-pick -- this is displayed then
- type: repository_state
# formatting (required), both (pre_format, post_format) are required
# you can include coloring in pre_format and reset colors in post_format
# you can also include arbitrary string
# for more information about setting colors for zsh:
# https://wiki.archlinux.org/index.php/zsh#Colors
# http://zsh.sourceforge.net/Doc/Release/Prompt-Expansion.html#Visual-effects
# and bash:
# https://www.ibm.com/developerworks/linux/library/l-tip-prompt/
#
# this is how the value is formatted in the end:
# [pre_format][value][post_format]
pre_format: ''
post_format: ''
# this is used to separate values between each other
# if there is no value displayed before or after separator, separator is not displayed either
- type: separator
display: surrounded
pre_format: '│'
post_format: ''
# monitor status against different remotes - track history divergence
- type: remote_difference
# remote branch name (optional), type string
# example: 'upstream/master'
# if omitted look for remotely tracked branch usually set up with:
# git branch --set-upstream-to
# remote_branch: ''
# display the remote even if there is no difference with current branch (required), type bool
display_if_uptodate: true
pre_format: ''
post_format: ''
# values which can be displayed as part of 'remote_difference'
values:
# formatting for remote name and branch name
- type: name
# there are some special values which are substituted:
# * <REMOTE> will be replaced with name of a remote
# * <LOCAL_BRANCH> will be replaced with current branch name
# * <REMOTE_BRANCH> will be replaced with name of remote branch
pre_format: '\[\e[38;5;4m\]<LOCAL_BRANCH>'
post_format: '\[\e[0m\]'
# the number of files present locally which are missing in remote repo
- type: ahead
pre_format: '\[\e[38;5;7m\]↑'
post_format: '\[\e[0m\]'
- type: behind
pre_format: '\[\e[38;5;7m\]↓'
post_format: '\[\e[0m\]'
- type: separator
display: surrounded
pre_format: '│'
post_format: ''
- type: remote_difference
remote_branch: 'upstream/master'
display_if_uptodate: false
pre_format: ''
post_format: ''
values:
- type: name
pre_format: '\[\e[38;5;2m\]<REMOTE>'
post_format: '\[\e[0m\]'
- type: ahead
pre_format: '\[\e[38;5;7m\]↑'
post_format: '\[\e[0m\]'
- type: behind
pre_format: '\[\e[38;5;7m\]↓'
post_format: '\[\e[0m\]'
- type: separator
display: surrounded
pre_format: '│'
post_format: ''
# the number of untracked files
- type: new
pre_format: '\[\e[38;5;248m\]✚'
post_format: '\[\e[0m\]'
# the number of tracked files which were changed in working tree
- type: changed
pre_format: '\[\e[38;5;166m\]Δ'
post_format: '\[\e[0m\]'
# the number of files added to index
- type: staged
pre_format: '\[\e[38;5;2m\]▶'
post_format: '\[\e[0m\]'
# during merge, rebase, or others, the numbers files which conflict
- type: conflicts
pre_format: '\[\e[38;5;226m\]✖'
post_format: '\[\e[0m\]'
- type: separator
display: surrounded
pre_format: '│'
post_format: ''
# show number of items in stash
- type: stash
pre_format: '\[\e[38;5;226m\]☐'
post_format: '\[\e[0m\]'