@@ -124,8 +124,8 @@ git clone https://github.com/magicmonty/bash-git-prompt.git .bash-git-prompt
124
124
# GIT_PROMPT_FETCH_REMOTE_STATUS=0 # uncomment to avoid fetching remote status
125
125
126
126
# GIT_PROMPT_SHOW_UPSTREAM=1 # uncomment to show upstream tracking branch
127
- # GIT_SHOW_UNTRACKED_FILES =all # can be no, normal or all; determines counting of untracked files
128
-
127
+ # GIT_PROMPT_SHOW_UNTRACKED_FILES =all # can be no, normal or all; determines counting of untracked files
128
+
129
129
# GIT_PROMPT_STATUS_COMMAND=gitstatus_pre-1.7.10.sh # uncomment to support Git older than 1.7.10
130
130
131
131
# GIT_PROMPT_START=... # uncomment for custom prompt start sequence
@@ -137,7 +137,7 @@ git clone https://github.com/magicmonty/bash-git-prompt.git .bash-git-prompt
137
137
source ~ /.bash-git-prompt/gitprompt.sh
138
138
```
139
139
140
- You can set the ` GIT_SHOW_UNTRACKED_FILES ` variable to ` no ` or ` normal ` to speed things up if you have lots of
140
+ You can set the ` GIT_PROMPT_SHOW_UNTRACKED_FILES ` variable to ` no ` or ` normal ` to speed things up if you have lots of
141
141
untracked files in your repository. This can be the case for build systems that put their build artifacts in
142
142
the subdirectory structure of the git repository.
143
143
@@ -202,7 +202,7 @@ If you use a custom theme in `.git-prompt-colors.sh`, please set `GIT_PROMPT_THE
202
202
and end of the prompt by setting ` GIT_PROMPT_START ` and ` GIT_PROMPT_END `
203
203
before you source the ` gitprompt.sh ` .
204
204
205
- - The current git repo information is obtained by the script ` gitstatus.sh ` .
205
+ - The current git repo information is obtained by the script ` gitstatus.sh ` .
206
206
- You can define ` prompt_callback ` function to tweak your prompt dynamically.
207
207
208
208
``` sh
@@ -247,6 +247,11 @@ GIT_PROMPT_COMMAND_FAIL="${Red}✘-_LAST_COMMAND_STATE_ " # displays as ✘-1 fo
247
247
- You can also ignore a repository completely by creating a file named `` .bash-git-rc `` with the
248
248
content `` GIT_PROMPT_IGNORE=1 `` in the root of your git repository.
249
249
250
+ - If you have a repository with many untracked files, the git prompt can become very slow.
251
+ You can disable the display of untracked files on a per repository basis by setting
252
+ `` GIT_PROMPT_SHOW_UNTRACKED_FILES=no `` in your `` .bash-git-rc `` in the repository or
253
+ by disabling it globally in your `` .bashrc ``
254
+
250
255
- You can get help on the git prompt with the function `` git_prompt_help `` .
251
256
Examples are available with `` git_prompt_examples `` .
252
257
A list of all available named colors is available with ` git_prompt_color_samples `
0 commit comments