powerlevel9k icon indicating copy to clipboard operation
powerlevel9k copied to clipboard

[feature] Honor multiline prefix parameters even when POWERLEVEL9K_PROMPT_ON_NEWLINE is false

Open romkatv opened this issue 5 years ago • 1 comments

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:

frame

Backward compatibility is a bit tricky. In my fork I implemented this feature as follows:

  1. If POWERLEVEL9K_PROMPT_ON_NEWLINE is true, display prefixes the same as in the original powerlevel9k.
  2. 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.

romkatv avatar Sep 09 '19 06:09 romkatv

Is there a fix/workaround for this?

brianjlandau avatar Nov 05 '19 20:11 brianjlandau