On Fri, Feb 5, 2021 at 8:05 PM Christian Parpart
<christian@parpart.family> wrote:
>
> Hi,
>
> Yes indeed.
>
> You can find it here:
> https://github.com/christianparpart/contour/blob/master/contour-integration.zsh#L36
Thanks, this does help.
The first prompt you see is not actually a prompt. It just looks like
it. See https://github.com/romkatv/powerlevel10k#instant-prompt. It's
the same trick that some mobile operating systems and web browsers use
when they show a picture of the app/website while it's still loading.
To solve your problem you can embed '\e[?2027l' and '\e[>M' in the
prompt (you can leave '\e]7;'$(pwd)'\e\\' in precmd although I would
recommend getting rid of the fork to speed up your prompt [1]). Here's
one way to do it:
POWERLEVEL9K_DIR_PREFIX=$'%{\e[?2027l\e[>M%}'
Depending on your actual config this may or may not work. A proper
solution would be to open a feature request against powerlevle10k so
that your terminal gets first class support (it's not the only
terminal that uses marks of this sort).
Roman.
[1]: printf '\e]7;%s\e\\' $PWD >$TTY