powerlevel10k
powerlevel10k copied to clipboard
TRANSIENT PROMPT not working (old prompt hasn't cleaned) with zle output
Hello there. Thanks for the amazing prompt! I have a script that prints a shell version.
function zle_eval {
zle -I
eval "$SHELL --version"
}
_display-shell-version() { zle_eval $SHELL --version }
zle -N _display-shell-version
bindkey '^X^V' _display-shell-version
When I use it with TRANSIENT PROMPT, it keeps the old prompt (see screenshot). Is it possible to clean up the previous line?
Desired behaviour (without "echo" command)