1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-11 00:00:06 +00:00

Fix variable in README

- Fix the variable name for the VCS shorten strategy.
- Add a heading for VCS truncation.
This commit is contained in:
Dominik Ritter 2018-06-11 08:38:30 +02:00
parent 51b53cd4b5
commit b7681a00ca

View file

@ -660,6 +660,8 @@ from the [Installation](#Installation) section above.
| None | None | ![icon_git](https://cloud.githubusercontent.com/assets/1544760/7976092/b5909f80-0a76-11e5-9950-1438b9d72465.gif) | Repository is a git repository | None | None | ![icon_git](https://cloud.githubusercontent.com/assets/1544760/7976092/b5909f80-0a76-11e5-9950-1438b9d72465.gif) | Repository is a git repository
| None | None | ![icon_mercurial](https://cloud.githubusercontent.com/assets/1544760/7976090/b5908da6-0a76-11e5-8c91-452b6e73f631.gif) | Repository is a Mercurial repository | None | None | ![icon_mercurial](https://cloud.githubusercontent.com/assets/1544760/7976090/b5908da6-0a76-11e5-8c91-452b6e73f631.gif) | Repository is a Mercurial repository
##### vcs truncation
You can limit the branch name to a certain length by truncating long names. You can limit the branch name to a certain length by truncating long names.
Customizations available are: Customizations available are:
@ -679,7 +681,7 @@ For example, if you want to truncate `1234-super_super_long_branch_name` to `123
```zsh ```zsh
POWERLEVEL9K_VCS_SHORTEN_LENGTH=4 POWERLEVEL9K_VCS_SHORTEN_LENGTH=4
POWERLEVEL9K_VCS_SHORTEN_MIN_LENGTH=11 POWERLEVEL9K_VCS_SHORTEN_MIN_LENGTH=11
POWERLEVEL9K_SHORTEN_STRATEGY="truncate_from_right" POWERLEVEL9K_VCS_SHORTEN_STRATEGY="truncate_from_right"
POWERLEVEL9K_VCS_SHORTEN_DELIMITER=".." POWERLEVEL9K_VCS_SHORTEN_DELIMITER=".."
``` ```