Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Weird reset-prompt behavior



Hi,
I'm pretty new to zsh so i don't know if this is already known, but i 
discovered a pretty weird behavior when resetting the prompt and rprompt

I did something like this:

zle-line-init zle-keymap-select()
{
        RPROMPT=${${KEYMAP/vicmd/-- COMMAND --}/main/}
        PROMPT=${${KEYMAP/main/$SAVEDPROMPT}/vicmd/}
        zle reset-prompt
}

zle -N zle-line-init
zle -N zle-keymap-select

the odd thing is that the rprompt only gets resetted after hitting ctrl-c 
(after hitting that once it works flawless). I could work around this by 
setting transientrprompt but on a fresh shell i need to issue at least one 
command otherwise rprompt does not reset.

Regards,
Björn



Messages sorted by: Reverse Date, Date, Thread, Author