From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 91c4c563 for ; Fri, 17 Jan 2020 02:52:09 +0000 (UTC) Received: (qmail 13303 invoked by alias); 17 Jan 2020 02:52:04 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 45322 Received: (qmail 12987 invoked by uid 1010); 17 Jan 2020 02:52:04 -0000 X-Qmail-Scanner-Diagnostics: from mail-vs1-f52.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.1/25691. spamassassin: 3.4.2. Clear:RC:0(209.85.217.52):SA:0(-2.0/5.0):. Processed in 2.500954 secs); 17 Jan 2020 02:52:04 -0000 X-Envelope-From: sgniazdowski@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.217.52 as permitted sender) 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=Uxr3tS4ChNaKKQQez2WKryFPSaHe0cP6L0l0IF4CIHQ=; b=IMnivFf5s0ErpCz+5eoYYdGoY3ZBAm7JocpZH2uiH0ljVmh9Pe3hr/68nRkRcXNjaH NLeHKncAg3Hs6mMKFJi3dHyGbwVz4/EO3UwYM3aMhNFpqaaWpp32r9jrWdmzXOyn4EAf MhSlVLEVq3QtgipIEZBgK6AwyL+oZ2gTo8K50wo/7omRZCRqoF5maG803ufajJrh+Raf 5cyAm24bBjyIyyy22byoxljm5N5MQQybuICpyk5Dc8QmHbt01DxNoa4ITvIPIcoyC7lC im5os5t7xrTiOYYtZ61RCtDJTeCzRI4ThF1LTgUthvDLNL0r/6RagYHKIpCBHw5fyXw+ hOTA== X-Gm-Message-State: APjAAAWm/l2V5Jq3ZklSpVcA369rfWGE39v+3y82s5cTOLGiQZ+V+BvL BbK4LHPIz6j9nCpt4a3LpJ3PEyUDM/w5Iorp1SnhdjquX18= X-Google-Smtp-Source: APXvYqwaQHcnfkT6BlOnrZ5Asx+onfRFBoa5Y59K+hJETY+fvNk7wLYPu0nrPKFI4prMMVeU030VyDD3JRvpUK+qU5s= X-Received: by 2002:a67:ee13:: with SMTP id f19mr3368589vsp.147.1579229487529; Thu, 16 Jan 2020 18:51:27 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Sebastian Gniazdowski Date: Fri, 17 Jan 2020 03:51:18 +0100 Message-ID: Subject: Re: feature request To: Yefim Vedernikoff Cc: Zsh hackers list Content-Type: text/plain; charset="UTF-8" On Fri, 17 Jan 2020 at 02:49, Sebastian Gniazdowski wrote: > > On Thu, 16 Jan 2020 at 23:11, Yefim Vedernikoff wrote: > > > > What would it take to add a new environment variable like $OUTPUT to keep > > track of the last output? I like the $(!!) solution from > > https://stackoverflow.com/questions/24283097/reusing-output-from-last-command-in-bash > > but I don't like that it redoes the work (especially if the work is > > intensive). > > I have a plugin in my TODO that would be defining global aliases OUT, > OUT2, etc. for the previous command's output, etc. It'll be based on > tmux capture-pane command. I'm not sure when the project will start, > any cooperation could speed this up. Also, you could look at: https://github.com/psprint/ztrace -- Sebastian Gniazdowski News: https://twitter.com/ZdharmaI IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin Blog: http://zdharma.org