You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-``↓m↑n``: branches diverged, other by ``m`` commits, yours by ``n`` commits
52
54
-``L``: local branch, not remotely tracked
53
55
- Branch Symbol:<br />
54
-
When the branch name starts with a colon ``:``, it means it's actually a hash, not a branch (although it should be pretty clear, unless you name your branches like hashes :-)
56
+
-When the branch name starts with a colon ``:``, it means it's actually a hash, not a branch (although it should be pretty clear, unless you name your branches like hashes :-)
to overwrite the current prompt with the bash-git-prompt directly
112
115
116
+
to overwrite the current prompt with the bash-git-prompt directly
113
117
114
118
### All configs for .bashrc
115
119
116
120
```sh
117
-
118
121
# Set config variables first
119
122
GIT_PROMPT_ONLY_IN_REPO=1
120
123
@@ -171,6 +174,7 @@ in your home directory, then the Custom theme is used.**
171
174
Ubuntu requires a bit more spacing for some characters so it has its own themes.
172
175
173
176
These can be listed with `git_prompt_list_themes`:
177
+
174
178
```sh
175
179
git_prompt_list_themes | grep Ubuntu
176
180
```
@@ -219,8 +223,8 @@ If you use a custom theme in `.git-prompt-colors.sh`, please set `GIT_PROMPT_THE
219
223
- You can define `prompt_callback` function to tweak your prompt dynamically.
220
224
221
225
```sh
222
-
functionprompt_callback {
223
-
if [ `jobs | wc -l`-ne 0 ];then
226
+
prompt_callback() {
227
+
if [ $(jobs | wc -l)-ne 0 ];then
224
228
echo -n " jobs:\j"
225
229
fi
226
230
}
@@ -235,7 +239,6 @@ function prompt_callback {
235
239
236
240
- You can show an abbreviated `username/repo` in the prompt by setting `GIT_PROMPT_WITH_USERNAME_AND_REPO=1` and setting the placeholder `_USERNAME_REPO_` in your `GIT_PROMPT_PREFIX`. You can also add a `GIT_PROMPT_USERNAME_REPO_SEPARATOR=" | "` so the `username/repo` is nicely separated if there is a remote and if there is no remote, neither the username/repo part nor the separator will be shown. See the theme `Single_line_username_repo.bgptheme` for an example.
237
241
238
-
239
242
- There is an indicator at the start of the prompt, which shows
240
243
the result of the last executed command by if you put the placeholder
241
244
`_LAST_COMMAND_INDICATOR_` in any of the prompt templates.
@@ -290,72 +293,78 @@ git_prompt_reset
290
293
git_prompt_toggle
291
294
```
292
295
293
-
294
296
**Enjoy!**
295
297
296
298
## Alternative RPM Install
297
299
298
300
This project ships an RPM spec to simplify installation on RHEL and
299
301
clones. If you wish to install from RPM, you may first build the RPM
300
302
from scratch by following this procedure:
303
+
301
304
* Clone this repository and tag the release with a version number
0 commit comments