mirror of
https://github.com/Cornelicorn/bullet-train.zsh.git
synced 2025-12-06 20:00:38 +01:00
Remove Tips section from README
Moves to Wiki
This commit is contained in:
58
README.md
58
README.md
@@ -247,67 +247,11 @@ more details.
|
|||||||
|`BULLETTRAIN_EXEC_TIME_BG`|`yellow`|Background color
|
|`BULLETTRAIN_EXEC_TIME_BG`|`yellow`|Background color
|
||||||
|`BULLETTRAIN_EXEC_TIME_FG`|`black`|Foreground color
|
|`BULLETTRAIN_EXEC_TIME_FG`|`black`|Foreground color
|
||||||
|
|
||||||
## Tips
|
|
||||||
|
|
||||||
### BULLETTRAIN_PROMPT_ORDER
|
|
||||||
|
|
||||||
This gives ability to customize order and put user-defined segment on prompt.
|
|
||||||
|
|
||||||
```bash
|
|
||||||
prompt_say_hello() {
|
|
||||||
prompt_segment yellow blue "hello"
|
|
||||||
}
|
|
||||||
|
|
||||||
BULLETTRAIN_PROMPT_ORDER=(
|
|
||||||
git
|
|
||||||
dir
|
|
||||||
say_hello
|
|
||||||
)
|
|
||||||
```
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
### 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.
|
|
||||||
|
|
||||||
You can also use function to get more complex commands:
|
|
||||||
|
|
||||||
``` bash
|
|
||||||
BULLETTRAIN_GIT_PROMPT_CMD="\$(custom_git_prompt)"
|
|
||||||
|
|
||||||
custom_git_prompt() {
|
|
||||||
prompt=$(git_prompt_info)
|
|
||||||
prompt=${prompt//\//\ \ }
|
|
||||||
prompt=${prompt//_/\ }
|
|
||||||
echo ${prompt}
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
which gives:
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
## Wiki
|
## Wiki
|
||||||
|
|
||||||
- [FAQ](https://github.com/caiogondim/bullet-train-oh-my-zsh-theme/wiki/FAQ)
|
- [FAQ](https://github.com/caiogondim/bullet-train-oh-my-zsh-theme/wiki/FAQ)
|
||||||
- [Screenshots](https://github.com/caiogondim/bullet-train-oh-my-zsh-theme/wiki/Screenshots)
|
- [Screenshots](https://github.com/caiogondim/bullet-train-oh-my-zsh-theme/wiki/Screenshots)
|
||||||
|
- [Tips](https://github.com/caiogondim/bullet-train-oh-my-zsh-theme/wiki/Tips)
|
||||||
|
|
||||||
## Contributors
|
## Contributors
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user