forked from lvv/git-prompt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgit-prompt.conf.mine
170 lines (135 loc) · 5.79 KB
/
git-prompt.conf.mine
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
### GIT-PROMPT.SH CONFIG
###
### lines commented-out with single '#' are default values
### lines commented-out with double '##' are examples
###
### NOTE: this is bash syntax - no spaces around "="
###########################################################
# error_bell=off # sound terminal bell when command return code is not zero. (use setterm to set pitch and duration)
max_file_list_length=30 # in characters
count_only=on # off - display file list; on - display file count
# rawhex_len=5 # length of git rawhex revision id display (use 0 to hide it)
# enable_utf8=on # use utf8 characters in prompt
############################################################ MODULES
# git_module=on
svn_module=on
# hg_module=on
vim_module=off
virtualenv_module=off
battery_module=on
make_module=on
# jobs_module=on
rc_module=on
command_time_module=on
load_module=on
clock_module=on
sudo_module=on
### order of modules
prompt_modules_order="RC LOAD CLOCK CTIME VIRTUALENV SUDO WHO_WHERE JOBS BATTERY CWD VCS MAKE"
########################################################### DEFAULT OBJECTS
### Default user and hostname can be abbreviated or suppressed.
### Valid settings:
### * keep - display fully
### * abbrev - abbreviate to first character
### * delete - do not display at all
default_host_abbrev_mode=abbrev
default_id_abbrev_mode=abbrev
### Examples:
default_user=kikuchiyo
default_host=aryabhata # remote host is always shown
## default_domain="lvvnet"
########################################################### Current Working Dir display
# cwd_cmd='\w' # display full path
## cwd_cmd='\W' # display only last dir of path
cwd_cmd='cwd_truncate $(($COLUMNS/4))' # display only last N chars of path
########################################################### ETC
# Some don't like hostname in uppercase
upcase_hostname=off # =off
# Some don't like long hostname
# short_hostname=off # =on
# Do not do VCS parsing for listed directories
# useful for directories for which it is difficult to maintain .gitignore so
# they are always dirty (ex: home, /etc) or directory with huge repo (ex: linux src)
## vcs_ignore_dir_list=" /etc $HOME /usr/src/linux.git "
# Do not check make status for listed directories
# useful for large projects where make -q would take several seconds
make_ignore_dir_list=" /etc $HOME /usr/src/linux.git "
### Display revision number for Mercurial repositories
### valid options:
### * num - display local revision number
### * id - display global revision id (hex string, truncated to rawhex_len characters
### * none - do not display at all
hg_revision_display=num
### Check for and display multiple hg heads
# hg_multiple_heads_display=on
### Display elapsed time used by long-running command if it's above this threshold:
### (seconds)
# command_time_threshold=15
### Colors and color change thresholds for load display.
### If the load is under the first value in the list, the display is supressed.
### Both have to be arrays with the same number of elements
# load_colors=(BLACK red RED whiteonred)
# load_thresholds=(100 200 300 400)
### Display style for load
### valid options:
### * markonly # only display the mark, supress the value
### * numeric # display mark and numeric value
### * bar # display mark and unicode bar chart
# load_display_style=bar
### Clock options
### Display style - analog or digital
clock_style=analog
### Alert interval, in minutes
### if 0, clock is always shown, otherwise it's displayed only every x minutes
clock_alert_interval=30
########################################################### COLOR
### directory, exit code, root color
# cols=`tput colors`
# if [[ -n "$cols" && $cols -ge 8 ]]; then # if terminal supports colors
dir_color=BLUE
slash_color=CYAN
slash_color_readonly=MAGENTA
prompt_color=colors_reset
rc_color=red
virtualenv_color=green
user_id_color=GREEN
root_id_color=magenta
make_color_ok=BLACK
make_color_dirty=RED
jobs_color_bkg=yellow
jobs_color_stop=red
at_color=green
at_color_remote=RED
clock_color=WHITE
sudo_color=RED
# else # B/W terminal
# dir_color=bw_bold
# rc_color=bw_bold
# fi
### prompt character for root/non-root, default '>' for both
# prompt_char='>'
# root_prompt_char='>'
prompt_char='$'
## prompt_char='➔'
root_prompt_char='#'
##### Per host color
### Per host color. If not set, color will be derived from hostname checksum).
### Variable name is uppercase-short-hostname with appended "_host_color"
### Example per-host-color config:
## TASHA_host_color=cyan
## AL_host_color=green
## AHP_host_color=white
ARYABHATA_host_color=green
PALATABLA_host_color=cyan
##### VCS (version control system) state colors
# init_vcs_color=WHITE # initial
# clean_vcs_color=blue # nothing to commit (working directory clean)
# modified_vcs_color=red # Changed but not updated:
# added_vcs_color=green # Changes to be committed:
# untracked_vcs_color=BLUE # Untracked files:
# deleted_vcs_color=yellow # Deleted files:
# conflicted_vcs_color=CYAN # Conflicted files:
# op_vcs_color=MAGENTA
# detached_vcs_color=RED
# hex_vcs_color=white # git revision id: bright black (makes gray)
# :vim:ft=sh ts=8 sw=8 et: