diff --git a/README.md b/README.md index d478970..00dc5eb 100644 --- a/README.md +++ b/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: + +![Git_Prompt_Before](./img/tips/git_prompt_before.png) + +into: + +![Git_Prompt_After](./img/tips/git_prompt_after.png) + +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 - *$*, *\*, *\*, etc. + ## Contributors That project was originally a fork from diff --git a/img/tips/git_prompt_after.png b/img/tips/git_prompt_after.png new file mode 100644 index 0000000..4861afe Binary files /dev/null and b/img/tips/git_prompt_after.png differ diff --git a/img/tips/git_prompt_before.png b/img/tips/git_prompt_before.png new file mode 100644 index 0000000..2db03e0 Binary files /dev/null and b/img/tips/git_prompt_before.png differ