From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HTML_MESSAGE,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 14014 invoked from network); 5 Feb 2021 21:35:41 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 5 Feb 2021 21:35:41 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1612560941; b=fvwqplWyxpeEMbB3AGG4oZaLjR0JzY3RGZqGosct+UKJ9oJ8cxF15BsbF5YoaX8dqQKjm6ps10 mLqdLJKst5y3ePz7GsBfFWuEhPx0miS8OsgAeztTwFyOKKCLuM8kBp4pxZrEPEbJOrpj6UofiN lsgWzurWP9CyMv4NoIZn27roQifwsucSBZuGkXvE2VQ0V8Koi7YaGK56KJPnjd0R2F7pGK1vW7 q/qwbcRWuYTy0nFvPDu6IHreE2491pk35VP6uT562a9qHspzWBsbGjnr4CQKVqtooxfP8/GUiW 9AZo1S00bbCd5TUZz+Ccba4g1OT7hyPUCtJSCzA9gJ/46A==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-wr1-f50.google.com) smtp.remote-ip=209.85.221.50; dkim=pass header.d=parpart-family.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=parpart.family; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1612560941; bh=QhBRKSo28sLD9a2BqhRLqsz8A4r9wfZi/jM48F/4U8M=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=oEIa5MzaZ89l+e/leT/lStx6TV3Q7oLjYTNdFaN9a/CfJRd7gmXhH58TsRtdvVhAE0/4jdzk7x CVfG+p+uOQ0KdTsjpC+xYNrf9mmUh6X4Svaagc2CQu8lWVio9DvG6JMr62VwYGjAD+xLR6DHEc uagrb0Zl5BmR1Yd/9yOvlWLOgNKYJ/zEIvZQuq6lzXCoP9tbyOQypaXCwtdFAn+Xnvk4NdEYev givYuJdCrKpODqag6z6KN8YDLe/cZZWdjqRDZ16nQ2bbcw5hSkiNycR+LT6iMS0Ax/ZjFb5FoA +hcDXSKkKVQGMLqdBHyJ1X+1Gf6jZQrBXqaxZOFDE2X8WA==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=6KVyigyvABC00LvQY66kpUiYlJ03enzKS3QMLkploCk=; b=OxlAG0hPBDqc8MfvLa1t6MlhgS PWM/O/FaiHOziYIp/ud/2YB31r231v/1amkS47fvTpda+9aPz2QQQZnpVIfCznNDS1bNPzhtgLJIS CUHdqRQFpR8WTIYDU9aPGt53gYFeKNKsRKQ0CIkpPk/Uo6wO1TQJyvfEtiguck+fQsihm9E4hNkl9 eaebuUhKBK4Xl2RuJ8WECnN4+MChemRZyEJfGBuKoYD9rKxV6BdrN283aEQeWOYyiPc/h7XGnj/Tn Lfof28rnaM1JKRQwexsFEnJkr3PlX3uzllLr1HHI0IqPK+/w+1v+/OwxnIJGbaAhtcfZwd2nOWR6t rtVvRnJw==; Received: from authenticated user by zero.zsh.org with local id 1l88lO-000BCu-1w; Fri, 05 Feb 2021 21:35:38 +0000 Authentication-Results: zsh.org; iprev=pass (mail-wr1-f50.google.com) smtp.remote-ip=209.85.221.50; dkim=pass header.d=parpart-family.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=parpart.family; arc=none Received: from mail-wr1-f50.google.com ([209.85.221.50]:43134) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1l88kr-000AqO-4B; Fri, 05 Feb 2021 21:35:07 +0000 Received: by mail-wr1-f50.google.com with SMTP id z6so9226668wrq.10 for ; Fri, 05 Feb 2021 13:35:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=parpart-family.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6KVyigyvABC00LvQY66kpUiYlJ03enzKS3QMLkploCk=; b=OTNPViBtmLC3D/ta76STxKF44uR9cW09DyT7o7KTMVhPoCX+k3eYUFqhZILNYXsGXd 8FBqNrqUIJh2xtIUu681f9nqpIeW2/xJOHHIkDkShZrizIOPaloMIVxxxPiALD42AdCz eFbDBiIURDMFLVTOpLAeaUGk3aSwtyy+noBothW/vEHaYXzsTTBoXkiPYcUhCeaqA4ph 4XK+nQ0eF8ykQtGGhl6J7PgeLMFBXbwB2HTCtdLlFGsHZB3hAyfpaH3J6OKV9zP6+tiA ShHA7QIeZTC6+ZRGiUQIKI+zokiBOR5fHb+iItKhkNaomWsKPI2ZHGdIPV2zKMITFKhU c/ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=6KVyigyvABC00LvQY66kpUiYlJ03enzKS3QMLkploCk=; b=SQMfeUDtxADx58fG+T8JqAf202vfsZo3PYMaod6zeIbqngys5JpSuKSKjEBRFY0wqh y06z1TlFtFpHTlOzaTUbmqbHd58pOUsZw7sEYPhypU3nKg8l78MVxUrz+W19A//Whzjc uKtaJta1DDsqN3h+uMVegii/ptFIS8hTCwEZPPEiMUvbqTw/+6rIwfKqlecjLVL3917B YsBv6HR07iHzyp1xIsqpj771yixp4rpD3q/RSzGC3vEU277svOQUfTPjSzLmTLU7Tt9E Hl/OR+izl1mNrvzspL7W5bHkyyfEXNWWvK5PXLxcc6Vx3zQ4ccTF7G3bAKyglwRIphqe 3nUw== X-Gm-Message-State: AOAM531iHamlKXb9ExJo8QxhCkrb5MF9M8avYz6GyOgQImxgtXyWkbXk DoFRzLgI52mDdxCP2p0pxEhluCcFwxndKbWpVaJKKw== X-Google-Smtp-Source: ABdhPJxNy8fQr+M4I6euVZJ/2n81Vj2SLm+quDbwx2r1SLX92XVOOVkozpZJIsDM3vmV0HQcz1bKIkI/0fVXLNM3XYI= X-Received: by 2002:adf:dd10:: with SMTP id a16mr7094466wrm.207.1612560901404; Fri, 05 Feb 2021 13:35:01 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Christian Parpart Date: Fri, 5 Feb 2021 22:34:52 +0100 Message-ID: Subject: Re: precmd hook invoked later than usual on very first prompt To: Roman Perepelitsa Cc: Zsh Users Content-Type: multipart/alternative; boundary="000000000000b50d1605ba9d9761" X-Seq: 26466 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Archived-At: --000000000000b50d1605ba9d9761 Content-Type: text/plain; charset="UTF-8" Thanks man, I will try it out and also contact p10k devs about a supportive middle ground. Have a great weekend, Christian Parpart. On Fri, Feb 5, 2021, 20:33 Roman Perepelitsa wrote: > On Fri, Feb 5, 2021 at 8:05 PM Christian Parpart > 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 > --000000000000b50d1605ba9d9761 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks man,
I will try=C2=A0it out and a= lso contact p10k devs about a supportive middle ground.

Have a=C2=A0great weekend,
Christian Parpart.

On Fri, Feb 5, 2021, 20:33 Roman Perepelitsa= <roman.perepelitsa@gmail= .com> wrote:
On Fri, Feb 5, = 2021 at 8:05 PM Christian Parpart
<christian@parpart.family> wrote:
>
> Hi,
>
> Yes indeed.
>
> You can find it here:
> h= ttps://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&#= 39; in the
prompt (you can leave '\e]7;'$(pwd)'\e\\' in precmd althoug= h I would
recommend getting rid of the fork to speed up your prompt [1]). Here's<= br> one way to do it:

=C2=A0 =C2=A0 POWERLEVEL9K_DIR_PREFIX=3D$'%{\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
--000000000000b50d1605ba9d9761--