powerlevel9k
powerlevel9k copied to clipboard
[feature] Honor multiline prefix parameters even when POWERLEVEL9K_PROMPT_ON_NEWLINE is false
Currently parameters such as POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX
have no effect unless POWERLEVEL9K_PROMPT_ON_NEWLINE
is true. It would be nice to remove this restriction. Then one could define prompts line this:
Backward compatibility is a bit tricky. In my fork I implemented this feature as follows:
- If
POWERLEVEL9K_PROMPT_ON_NEWLINE
is true, display prefixes the same as in the original powerlevel9k. - If
POWERLEVEL9K_PROMPT_ON_NEWLINE
is false, display only those prefixes that are defined explicitly by the user.
This didn't cause any complaints from users. Presumably, if someone explicitly sets POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX
, they want it to have some effect, so honoring this parameter does't break anything even though it's technically not backward compatible with powerlevel9k.
Is there a fix/workaround for this?