mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-14 00:50:08 +00:00
Merge pull request #49 from dritter/dritter/branch_icon_fixes
Fix the branch icon in the VCS segment. Resolves bug #49.
This commit is contained in:
commit
0d9fe3d60f
2 changed files with 17 additions and 17 deletions
|
@ -288,11 +288,11 @@ set `POWERLEVEL9K_CHANGESET_HASH_LENGTH` to any value you want.
|
||||||
# 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
|
You can also disable the branch icon in your prompt by setting
|
||||||
`POWERLEVEL9K_SHOW_BRANCH_ICON` to `true`:
|
`POWERLEVEL9K_HIDE_BRANCH_ICON` to `true`:
|
||||||
|
|
||||||
# Show an icon before the branch name
|
# Hide the branch icon
|
||||||
POWERLEVEL9K_SHOW_BRANCH_ICON=true
|
POWERLEVEL9K_HIDE_BRANCH_ICON=true
|
||||||
|
|
||||||
##### Symbols
|
##### Symbols
|
||||||
|
|
||||||
|
|
|
@ -158,14 +158,14 @@ case $POWERLEVEL9K_MODE in
|
||||||
VCS_TAG_ICON=''
|
VCS_TAG_ICON=''
|
||||||
VCS_BOOKMARK_ICON="\u263F" # ☿
|
VCS_BOOKMARK_ICON="\u263F" # ☿
|
||||||
VCS_COMMIT_ICON=''
|
VCS_COMMIT_ICON=''
|
||||||
VCS_BRANCH_ICON='@'
|
VCS_BRANCH_ICON="\uE0A0 " #
|
||||||
VCS_REMOTE_BRANCH_ICON="\u2192" # →
|
VCS_REMOTE_BRANCH_ICON="\u2192" # →
|
||||||
VCS_GIT_ICON="\uE0A0" #
|
VCS_GIT_ICON=""
|
||||||
VCS_HG_ICON="\uE0A0" #
|
VCS_HG_ICON=""
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [[ "$POWERLEVEL9K_SHOW_BRANCH_ICON" != true ]]; then
|
if [[ "$POWERLEVEL9K_HIDE_BRANCH_ICON" == true ]]; then
|
||||||
VCS_BRANCH_ICON=''
|
VCS_BRANCH_ICON=''
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue