mirror of
https://github.com/Cornelicorn/bullet-train.zsh.git
synced 2025-12-06 11:50:38 +01:00
Add Tips section.
Add usage of BULLETTRAIN_GIT_PROMPT_CMD with example.
This commit is contained in:
22
README.md
22
README.md
@@ -229,6 +229,28 @@ or don't want to see. All options must be overridden in your **.zshrc** file.
|
||||
|`BULLETTRAIN_EXEC_TIME_BG`|`yellow`|Background color
|
||||
|`BULLETTRAIN_EXEC_TIME_FG`|`black`|Foreground color
|
||||
|
||||
## Tips
|
||||
|
||||
### BULLETTRAIN_GIT_PROMPT_CMD
|
||||
|
||||
Allows you to specify custom git prompt command. This makes it possible to
|
||||
change:
|
||||
|
||||

|
||||
|
||||
into:
|
||||
|
||||

|
||||
|
||||
with:
|
||||
|
||||
``` bash
|
||||
BULLETTRAIN_GIT_PROMPT_CMD=\${\$(git_prompt_info)//\\//\ \ }
|
||||
```
|
||||
|
||||
Please note we need to delay variable expansion, so we have to escape all
|
||||
**weird** character - *$*, *\*, *\<space>*, etc.
|
||||
|
||||
## Contributors
|
||||
|
||||
That project was originally a fork from
|
||||
|
||||
BIN
img/tips/git_prompt_after.png
Normal file
BIN
img/tips/git_prompt_after.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.5 KiB |
BIN
img/tips/git_prompt_before.png
Normal file
BIN
img/tips/git_prompt_before.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.3 KiB |
Reference in New Issue
Block a user