Closed ahmedelgabri closed 3 weeks ago
You need to put POWERLEVEL9K_*
parameters in ~/.p10k.zsh
.
@romkatv all the edits were done inside .p10k.zsh
file inside $ZDOTDIR/.p10k.zsh
Here is a video showing the problem, I made the 2nd change to prove that the file is read correctly but some changes are applied while others are not, in this case, POWERLEVEL9K_VCS_BRANCH_ICON
https://github.com/romkatv/powerlevel10k/assets/63876/500b0eaa-7ee1-4709-aaa1-7a1b64599edf
I just replaced my .p10k.zsh
with the pure config and tried what you did and it worked.
Do you overwrite it maybe on a later line? Or you have it in another file you source? Does echo $POWERLEVEL9K_VCS_BRANCH_ICON
print the icon?
Do you overwrite it maybe on a later line? Or you have it in another file you source?
Yeah, I found out the problem was here, I had a different file which I source that I tried to set it up there first 🤦🏼
But the problem with respecting the space is still there.
Ok, I managed to do what I want using the following instead, found out about _PREFIX
from this discussion https://github.com/romkatv/powerlevel10k/discussions/2567#discussioncomment-8426041
# I set the icon here
typeset -g POWERLEVEL9K_VCS_PREFIX=' '
# I remove the icon from here
typeset -g POWERLEVEL9K_VCS_BRANCH_ICON=
I'm trying to migrate from Pure, this is my current pure prompt looks like
This is my current p10k pure one
I still can't manage to set
POWERLEVEL9K_VCS_BRANCH_ICON
though, the only way I managed to get it working was by manually running the following, but whatever I do inside the file is not reflected in new sessions.Yet this will still not respect the space after the icon and it will render like this