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 14930 invoked from network); 5 Feb 2021 17:13:23 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 5 Feb 2021 17:13:23 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1612545203; b=Si3KlZRuJv30VxF3zhSLUUwCMqUYb6hkRc7CCtkfuLj61mPZfFGnhcJQPqxjlJ5KrFhh0IrJ74 kUbb4dnPBhgRyKHPfef7tBJUb+PLASfUs0jhSo8qcIf8NPfKurUpbp/fo1u8Zq+TTFeEoBdUGD ROpXHdGWt3s2L+wkKP9VO3wCcHrvr69v0okfKYv7tjnd8Z/NAiMcrFHso+GPyP1iOZj5j6A02Y s50yepB2jeHMAOA2D4OHNWKQXDPIJRenTQl8aeWnmV1KKFpMqP/oB20FhPNHcY5ojz+YXTMCwo CZXKrj+esTP0dddD3gezuNpWBHJ1jVKiLpCtrdYbDqrrZw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-wr1-f52.google.com) smtp.remote-ip=209.85.221.52; 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=1612545203; bh=emA+K0gp2cN6BQ+0LY0YlnLfJK8UfWLE1wFi9cnoDgs=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:To:Subject:Message-ID:Date:From:MIME-Version: DKIM-Signature:DKIM-Signature; b=htg2kZYRK3UD934iSlmn3OwHNRO9qXfNpzJtL7+s1ZLuGqmqIbDgXbX0P4TuqP6nqQFdww1iuG zR5k7+FLlNb62SdHEuwgBhke9M0AfhlC396zELWhQikUnVt5WGm/TapDbfIKoi5cKdcVtnY9ji bAJ1rS7sqlRZGUaqQN40W1kuKmPfYlW/n5KIZOoJfuLUPy4GZd1zzUZeJRm4QS2ueVyK+iwf3E NHWLHmhtMZc5cXSmpnacglMiMDDoT6jFDmbacnhFDmVC5fNKzSSqCkrPBkWf4JLPippCyTzdd6 m2yVQoegvtonzd8K3PzEITLLGUnUl+iOo6mnWFmEkje9OA==; 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:To:Subject:Message-ID: Date:From:MIME-Version:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References; bh=zWyF9mU2m/sYuZ0l1ejw3sHZqZMSwB/2+HMLWsFkNc4=; b=nCWmJoChzxT1t2SMBmGCXDKjLL ka5GKRjok6poaPyf+LOpHkQM2nJAlBuMAqTn2Cmpi7Md70m+mj4TTo5HXCaMedbLpo8YUfNNmPHwc 5zmg236KNyzT3hIy9CyBCaE0VCbz8h87jhDCXCeSBUFWa819uA0iIgzskGVMa+PFgyoqVM4dZzB3Q jlm6IQMw6J3ll6E6GHpH6ZYMYYGtvTjI8Kz8h64RCPL84gY0Q2JYAgdefPJkQsLC8wGAwEmByuszA EOGRUVkB9LqkuEyo91CLlbolv5H0otFki6cCmLEyIwAie9cE76WreU8rmD9f8P2EL9j57ROHN/YNe 4I/lNIBQ==; Received: from authenticated user by zero.zsh.org with local id 1l84fa-0002A9-Et; Fri, 05 Feb 2021 17:13:22 +0000 Authentication-Results: zsh.org; iprev=pass (mail-wr1-f52.google.com) smtp.remote-ip=209.85.221.52; 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-f52.google.com ([209.85.221.52]:42687) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1l84fF-00020h-PB; Fri, 05 Feb 2021 17:13:02 +0000 Received: by mail-wr1-f52.google.com with SMTP id c4so8456352wru.9 for ; Fri, 05 Feb 2021 09:13:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=parpart-family.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=zWyF9mU2m/sYuZ0l1ejw3sHZqZMSwB/2+HMLWsFkNc4=; b=f5wH+QmLcNDWILEkvdUnqOuO97Bb76gLjyY1TL8WLrrNEDdb6r4+sgy0LeQRh7ZN1G F0WxgVm/sI1i0Ca6LATJ3horFkKg22yaoA5az/Pvr0oSKCH+DXBC0vIdB4Ffkb6oiytt 2KchgtiKg1VRjPWA+l8ceBRQLnHiQ9l9BKMEGe6dfjkHRV9k4zOAlC7Q6bBF0ko5P9s3 JZCvhY7dmucH5iTbDg1uB8GZzdRlyj+uioUnOB7rI6O4vl717kNU73KmVEaG8iU1Lb14 A7l+Dq9SHRZVVaxwh/tnC+XqDV441joseoclY1YZokTa1oAcBprpBqMBrMTDaguvUiOk R95Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=zWyF9mU2m/sYuZ0l1ejw3sHZqZMSwB/2+HMLWsFkNc4=; b=Cq6aZkN4fX1P6YiS87eqssSOOdCEd+JsB3opL+0EyvLlO73tcgMrOGCQ2a/GlJl5Zl h+bKXhE0ssV57wTCOCKEQP+QpJyCXqwUC7RLMYg+ot137SG3domu6MZVhdDpfOg30eCE wtXzpuRgcVArTg+1pTuLgaQXs9Tqu7yaVPs7m6maOUz5lTshosiYD7O243AgAMpGSatJ fhnsFOqTwzhcLNeW9R50YSkMpynHkbzLM+rpul21bt9eJtWZgiBDttGwsQ1KBRcfFCj8 27oAlDLZ59VZbbuZZjPp8EYN0OHlG5IYCXNZV7EqGM8Y/p148MNHkIjvP52lHnAraKL5 R3zQ== X-Gm-Message-State: AOAM533mskMw4emlgcHon+OwRkezu5pnU9jbaFz4ZgrTsQHyepyoVWaE iDNsKtbIKEgY3HoG+cPQ8Fa0OVZg4eyWtfGrADAhvmg5whd38ol1 X-Google-Smtp-Source: ABdhPJxPDgYSfCFdHaH7b+3rFqABFoOGPu3QfYKPpWmdI5s2rqM0X8TfUMtKZSpJVf1ktWF0m52+iF5z/r7m7zl8EFc= X-Received: by 2002:a05:6000:1543:: with SMTP id 3mr6197263wry.254.1612545181281; Fri, 05 Feb 2021 09:13:01 -0800 (PST) MIME-Version: 1.0 From: Christian Parpart Date: Fri, 5 Feb 2021 18:12:50 +0100 Message-ID: Subject: precmd hook invoked later than usual on very first prompt To: zsh-workers@zsh.org Content-Type: multipart/alternative; boundary="000000000000b7339405ba99ee7c" X-Seq: 47914 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Archived-At: --000000000000b7339405ba99ee7c Content-Type: text/plain; charset="UTF-8" Hi, I'm using zsh (fairly new to me) with oh-my-zsh and now also with p10k customization, so that my prompt actually covers two lines, whereas the first one is some meta info (cwd, etc), and the second will be the (somewhat) decorated prompt. Now, `add-zsh-hook precmd _my_precmd`, as well as `add-zsh-hook preexec _my_preexec` are being all invoked nicely. Except for the very first prompt right after process spawn the preexec hook is NOT being invoked on the upper line (first line of screen in a new terminal, as with every other future prompt, but in the second line). This makes it sadly nondeterministic and sadly kinda useless in my use case at least. I (with no knowledge of zsh) would say thats a bug, hence I'm writing here with the hope of some help or a trigger for a bugfix. Best regards, Christian Parpart. p.s.: I'm using Ubuntu 20.10 (if that matters) --000000000000b7339405ba99ee7c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

I'm using zsh (fairl= y new to me) with=20 oh-my-zsh and now also with p10k customization, so that my prompt=20 actually covers two lines, whereas the first one is some meta info (cwd, etc), and the second will be the (somewhat) decorated prompt.
Now, `add-zsh-hook precmd _my_precmd`,=C2=A0 as well as `add-z= sh-hook preexec _my_preexec` are being all invoked nicely.

Except for the very first prompt right after process spawn the preexec hook is NOT being invoked on the upper line (first line of screen in a new=20 terminal, as with every other future prompt, but in the second line).
=

This makes it sadly nondeterministic and sadly kinda useless in my use case=20 at least. I (with no knowledge of zsh) would say thats a bug, hence I'm= =20 writing here with the hope of some help or a trigger for a bugfix.

Best regards,
Christian Parpart.
p.s.:= I'm using Ubuntu 20.10 (if that matters)
--000000000000b7339405ba99ee7c--