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.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 11446 invoked from network); 8 Sep 2022 02:53:43 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 8 Sep 2022 02:53:43 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:Subject:Cc:To:From:Date: References:In-Reply-To:Message-Id: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=fJHZk6cv98Kq06MwLZv0zjnq465jTowzKPnIowOxMes=; b=m6SyMi4qWacf5KergDT28d32EM kwJdjNqjSN/w1tWmN2ri2vef396/EZoCWrSodix5M+nDKtDSv+7hn/QHROSmw5zdVfqS7u40XQkP1 +cGVkuqR03xi2sh8M6NC+Bw8shs22zMXgROvTXwFWD+KGfVnBIGaEVzh+ntElLtmcAYV8ocbBsmJz 0PYQAvMw+OJtCNqQZrj+Y7+oWOJn/LvJPRqZuDlZk58QLWIfCfClMzslNcc+hK/qQlw3dp1l3UNVR /JDunrin/0FXuQCoXPSgdnxJYz9HKWaDmuyX3441jUj5Ckbpzhc8JiEc1h51MbJyviUrOdsNUIDMK tVVHShzA==; Received: from authenticated user by zero.zsh.org with local id 1oW7fi-000C0P-FU; Thu, 08 Sep 2022 02:53:42 +0000 Received: from authenticated user by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1oW7ew-000BKh-B5; Thu, 08 Sep 2022 02:52:54 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailauth.nyi.internal (Postfix) with ESMTP id 4473627C0054; Wed, 7 Sep 2022 22:52:50 -0400 (EDT) Received: from imap48 ([10.202.2.98]) by compute2.internal (MEProxy); Wed, 07 Sep 2022 22:52:50 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfedtuddgieeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderreejnecuhfhrohhmpefnrgif rhgvnhgtvggpgggvlhojiihquhgviicuoehlrghrrhihvhesiihshhdrohhrgheqnecugg ftrfgrthhtvghrnhepveduveeuleffffdutdehfeehuedtjeffheehvefgveeivddtudek leejhffhleffnecuffhomhgrihhnpehgihhthhhusgdrtghomhenucevlhhushhtvghruf hiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehlrghrrhihvhdomhgvshhmthhp rghuthhhphgvrhhsohhnrghlihhthidqudduhedukeejjedtgedqudduledvjeefkeehqd hlrghrrhihvheppeiishhhrdhorhhgsehfrghsthhmrghilhdrtghomh X-ME-Proxy: Feedback-ID: iaa214773:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id ED4ED31A0062; Wed, 7 Sep 2022 22:52:49 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-927-gf4c98c8499-fm-20220826.002-gf4c98c84 Mime-Version: 1.0 Message-Id: In-Reply-To: References: Date: Wed, 07 Sep 2022 22:52:29 -0400 From: =?UTF-8?Q?Lawrence_Vel=C3=A1zquez?= To: "Zach Riggle" , "Roman Perepelitsa" Cc: zsh-users@zsh.org Subject: Re: Injecting a command into stdin / input Content-Type: text/plain X-Seq: 28048 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: On Wed, Sep 7, 2022, at 9:26 PM, Zach Riggle wrote: > I've been doing some rather ridiculous things with zsh-defer [1] Looks like you forgot the link. https://github.com/romkatv/zsh-defer > in order to speed up my shell startup time. I've knocked it down by > about 80%! > > The down-side is that the terminal exits if the first input is , > but works fine if any command is executed. > > How can I inject a command for the first line, e.g. "/usr/bin/clear" in > order to jerry-rig this to work? Perhaps Roman can provide some advice, as he is the author of zsh-defer. (I know he's subscribed to this list, but I've Cc-ed him for expediency.) -- vq