powerlevel10k icon indicating copy to clipboard operation
powerlevel10k copied to clipboard

Duplicating PROMPT_CHAR with Transient Prompt

Open TicTak21 opened this issue 1 year ago • 1 comments

Hello. First of all, I want to thank you for this project and its maintenance. I migrated from Spaceship, and I really like p10k.

About my problem: I'm using a string (kaomoji) as a PROMPT_CHAR:

typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIINS_CONTENT_EXPANSION='¯\_(ツ)_/¯' 

It works fine except when it comes to the transient prompt. For some reason, it adds extra _/¯). Screenshot 2024-07-02 at 12 43 27

  • Yes, I tried disabling the transient prompt: POWERLEVEL9K_TRANSIENT_PROMPT=off for test purposes.
  • Yes, if I use the default prompt character, I don't see any extra symbols.

Here is my full config: https://pastebin.com/6suPcUn7

TicTak21 avatar Jul 02 '24 09:07 TicTak21

I've reproduced this. Definitely looks like a bug in powerlevel10k.

romkatv avatar Jul 17 '24 17:07 romkatv