|
|
|
@ -14,13 +14,13 @@ $ time hg branch |
|
|
|
### Branch plugin |
|
|
|
### Branch plugin |
|
|
|
|
|
|
|
|
|
|
|
```shell |
|
|
|
```shell |
|
|
|
$ time sh /tmp/branch_prompt_info.sh |
|
|
|
$ time zsh /tmp/branch_prompt_info_test.zsh |
|
|
|
0.01s user 0.01s system 81% cpu 0.018 total |
|
|
|
0.00s user 0.01s system 78% cpu 0.014 total |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
## Usage |
|
|
|
## Usage |
|
|
|
|
|
|
|
|
|
|
|
Edit your theme file (eg.: `~/.oh-my-zsh/theme/robbyrussell.zsh-theme`) |
|
|
|
Edit your theme file (eg.: `~/.oh-my-zsh/theme/robbyrussell.zsh-theme`) |
|
|
|
adding `$(branch_prompt_info)` in your prompt like this: |
|
|
|
adding `$(branch_prompt_info)` in your prompt like this: |
|
|
|
|
|
|
|
|
|
|
|
```diff |
|
|
|
```diff |
|
|
|
|