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 b2b57525 for ; Thu, 20 Feb 2020 12:45:40 +0000 (UTC) Received: (qmail 21336 invoked by alias); 20 Feb 2020 12:45:31 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 24695 Received: (qmail 918 invoked by uid 1010); 20 Feb 2020 12:45:31 -0000 X-Qmail-Scanner-Diagnostics: from mail-vs1-f50.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.2/25725. spamassassin: 3.4.2. Clear:RC:0(209.85.217.50):SA:0(-2.0/5.0):. Processed in 3.91479 secs); 20 Feb 2020 12:45:31 -0000 X-Envelope-From: pierpaolog@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.50 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:from:date:message-id:subject:to; bh=VMwrrsT/lJCKe8eS5xaeRJNAuwwsur9g9nlEvDF0he4=; b=iQWfL48D2L1P2J6Y+26WpcMHjxfesCU16NtQpmvl+1alQVg54PgsZ2So9O7FeEiGzb e7iB29Qr1QohG/6dvV/IuR4rVTDkUzk5SC1NHZNPVWGNdS09guH+q/UmxtQhFqqcO3xJ 7EwLngjDvIuo6/YF0mlzqc8Kb5puk9BjOWDp/2AfvSV0K91IPfFn9GaHQNPosA7RklDm +1FOer7VnKhqIxTODsR25/XKD/6GSpDGHZS9ZS/yIn8zciUYi1hGdMNCULLrhwHFNici zA3pIYVNIoX/MZuANKEnT4jQLIT8EzJabedXPPP+xzZX3zoUNuFE5/i1BtKCA76LQ9hm 2d8Q== X-Gm-Message-State: APjAAAV6hBAj8TXowZJDHPFrw6/8MG9M6JyEVyY4iQ0x79sREZzMrBLm 8oOFwj+Zce7iIbTUF8lDB4wITs3h4DhLUdUniKlQ0A== X-Google-Smtp-Source: APXvYqxHpc5tTiuMkmA84N4srs52uPOcEmlCZmvSayxCcgrRupvj7RYu2Rbf+VaWiFTZR24Z9HnfRcFAweqK3rFsNIM= X-Received: by 2002:a67:df97:: with SMTP id x23mr17030897vsk.160.1582202692405; Thu, 20 Feb 2020 04:44:52 -0800 (PST) MIME-Version: 1.0 From: Pier Paolo Grassi Date: Thu, 20 Feb 2020 13:44:15 +0100 Message-ID: Subject: history expansion To: Zsh-Users List Content-Type: multipart/alternative; boundary="0000000000007190ee059f01456f" --0000000000007190ee059f01456f Content-Type: text/plain; charset="UTF-8" hello, history expansion is quite the powerful syntax for re-executing commands from history with various functionalities for automatic transformation. Since it happens before alias expansion it is not possibile to simplify the access to these functionalities though, and one have to remember and type every time the right syntax, and in case of error you have to type everything again. Is that it or am I missing some way to reuse it? I have just thought of a custom widget that could add to $BUFFER a history command of one's choice, are there other ways? Pier Paolo Grassi linkedin: https://www.linkedin.com/in/pier-paolo-grassi-19300217 founder: https://www.meetup.com/it-IT/Machine-Learning-TO --0000000000007190ee059f01456f--