-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Padding on the right prompt #87
Comments
Try the following experiment. Type this command: PROMPT='X> ' RPROMPT='<X' zsh -df Note that there is space after ZLE_RPROMPT_INDENT=0 The space is gone. You can also try From http://zsh.sourceforge.net/Doc/Release/Parameters.html:
What you see with p10k is the expected behavior. p9k has a bug: Powerlevel9k/powerlevel9k#1292. If you don't want to have right prompt indented, set |
Thank you for the explanation. Setting |
I hope this is true although this doesn't match my recollection. To ensure the bug is indeed not triggered you can conduct these tests.
|
Okay. I stand corrected. Both Terminator and GNOME Terminal are affected by it. |
@MycroftHolmes1989 I've implemented a workaround in Powerlevel10k for the ZSH bug. If you update powerlevel10k, your cursor should behave correctly even if you set |
Unfortunately, it doesn't work on Terminator or GNOME Terminal, even after the update. |
This is surprising, as I've tested my workaround on these terminals. Please type rm -rf /tmp/p10k
git clone https://github.com/romkatv/powerlevel10k.git /tmp/p10k
ZLE_RPROMPT_INDENT=0
source /tmp/p10k/powerlevel10k.zsh-theme If this works, the most likely explanation is that your powerlevel10k version is not up to date. |
It works when I do it from |
Please post a screenshot of your prompt (when it's in the non-working state) and your |
You can drag-and-drop images to the comment edit box on GitHub. |
.zshrc:
.pl10ksettings:
|
You need to put |
Resolved! Thanks. |
Phew! That was a tough one. Thanks for verifying. |
Every time I do a fresh install of a linux distro and install powerlevel10k, this "bug" is always comes up. I'm here for the 20th time :P |
@enkeyz It's a good idea to keep your |
I am using the my powerlevel9k config with powerlevel10k on Ubuntu. On Terminator as well as GNOME Terminal Emulator, there is some padding on right side of the right prompt. The issue is demonstrated on this screenshot. My config for the right prompt is:
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status command_execution_time background_jobs history)
The text was updated successfully, but these errors were encountered: