|
|
|
@ -57,10 +57,10 @@ The symbols are as follows: |
|
|
|
1. You can use ``GIT_PROMPT_START`` and ``GIT_PROMPT_END`` to tweak your prompt |
|
|
|
1. You can use ``GIT_PROMPT_START`` and ``GIT_PROMPT_END`` to tweak your prompt |
|
|
|
2. If you want to tweak the colors, |
|
|
|
2. If you want to tweak the colors, |
|
|
|
currently you have to tweak it in the ``gitprompt.sh`` |
|
|
|
currently you have to tweak it in the ``gitprompt.sh`` |
|
|
|
3. You can define ``prompt_callback`` function to tweak your prompt dynamicly |
|
|
|
3. The current git repo information is obtained by the script `gitstatus.sh` or |
|
|
|
4. The current git repo information is obtained by the script `gitstatus.sh` or |
|
|
|
|
|
|
|
`gitstatus.py`. Both scripts do the same thing, but the bash script is a tad |
|
|
|
`gitstatus.py`. Both scripts do the same thing, but the bash script is a tad |
|
|
|
bit more quick, and is used by default. |
|
|
|
bit more quick, and is used by default. |
|
|
|
|
|
|
|
4. You can define ``prompt_callback`` function to tweak your prompt dynamicaly |
|
|
|
|
|
|
|
|
|
|
|
```sh |
|
|
|
```sh |
|
|
|
function prompt_callback { |
|
|
|
function prompt_callback { |
|
|
|
|