UNSOLVABLE: Property interactive: true
results in wrong prompt length calculation in Bash/Zsh
#5455
Closed
lewis-yeung
started this conversation in
General
Replies: 1 comment 1 reply
-
I'm posting this just in case someone is confused by it. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In Bash/Zsh, when the property
interactive
istrue
for a segment, the prompt length calculation can be wrong because of possible string expansions (e.g.,\w
in Bash and%d
in Zsh which both expand to the current working directory), thus a right-aligned block is not being properly right-aligned.Unfortunately, it's not possible for OMP to know the final prompt length since the string expansion is done by shells.
Beta Was this translation helpful? Give feedback.
All reactions