1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-12-18 13:41:56 +00:00

README: Updating for branch icon, ToC

This commit is contained in:
Ben Hilburn 2015-07-08 18:52:30 -07:00
parent b455526ecc
commit 772c9ab85d

View file

@ -46,7 +46,9 @@ like with a normal installation and default settings:
- [Further color customizations](#further-color-customizations) - [Further color customizations](#further-color-customizations)
- [Troubleshooting](#troubleshooting) - [Troubleshooting](#troubleshooting)
- [Gaps Between Segments](#gaps-between-segments) - [Gaps Between Segments](#gaps-between-segments)
- [Contributions / Bugs / Contact](#contributions--bugs--contact) - [Meta](#meta)
- [Kudos](#kudos)
- [Contributions / Bugs / Contact](#contributions--bugs--contact)
<!-- END doctoc generated TOC please keep comment here to allow auto update --> <!-- END doctoc generated TOC please keep comment here to allow auto update -->
@ -280,14 +282,15 @@ would also like for it to display the current hash / changeset, simply define
`POWERLEVEL9K_SHOW_CHANGESET` in your `~/.zshrc`. If activated, it will show `POWERLEVEL9K_SHOW_CHANGESET` in your `~/.zshrc`. If activated, it will show
the first 12 characters of the changeset id. To change the amount of characters, the first 12 characters of the changeset id. To change the amount of characters,
set `POWERLEVEL9K_CHANGESET_HASH_LENGTH` to any value you want. set `POWERLEVEL9K_CHANGESET_HASH_LENGTH` to any value you want.
By setting `POWERLEVEL9K_SHOW_BRANCH_ICON` it shows a nice icon before the
branch name.
Example:
# enable the vcs segment in general # enable the vcs segment in general
POWERLEVEL9K_SHOW_CHANGESET=true POWERLEVEL9K_SHOW_CHANGESET=true
# just show the 6 first characters of changeset # just show the 6 first characters of changeset
POWERLEVEL9K_CHANGESET_HASH_LENGTH=6 POWERLEVEL9K_CHANGESET_HASH_LENGTH=6
You can also enable an additional branch icon in your prompt by setting
`POWERLEVEL9K_SHOW_BRANCH_ICON` to `true`:
# Show an icon before the branch name # Show an icon before the branch name
POWERLEVEL9K_SHOW_BRANCH_ICON=true POWERLEVEL9K_SHOW_BRANCH_ICON=true