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=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 6dad9bf4 for ; Tue, 17 Dec 2019 10:05:47 +0000 (UTC) Received: (qmail 13220 invoked by alias); 17 Dec 2019 10:05:41 -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: 24567 Received: (qmail 218 invoked by uid 1010); 17 Dec 2019 10:05:41 -0000 X-Qmail-Scanner-Diagnostics: from 195-159-176-226.customer.powertech.no by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.1/25663. spamassassin: 3.4.2. Clear:RC:0(195.159.176.226):SA:0(-0.3/5.0):. Processed in 1.841334 secs); 17 Dec 2019 10:05:41 -0000 X-Envelope-From: gcszu-zsh-users@m.gmane.org X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at m.gmane.org does not designate permitted sender hosts) X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@zsh.org From: zzapper Subject: Re: suffix alias on a generated file name Date: Tue, 17 Dec 2019 10:02:37 -0000 (UTC) Organization: Your Company Message-ID: References: <20191214111751.ot4jd3o5esekqyfb@tarpaulin.shahaf.local2> <20191216035801.doeloio2cwauxguj@tarpaulin.shahaf.local2> User-Agent: Xnews/2009.05.01 X-Antivirus: Avast (VPS 191216-0, 16/12/2019), Outbound message X-Antivirus-Status: Clean Daniel Shahaf wrote in news:20191216035801.doeloio2cwauxguj@tarpaulin.shahaf.local2: > zzapper wrote on Sun, Dec 15, 2019 at 16:20:16 -0000: >> Daniel Shahaf wrote in >> news:20191214111751.ot4jd3o5esekqyfb@tarpaulin.shahaf.local2: >> >> >> >> BUT how do I do that without the manual TABing? >> > > I suppose you could wrap the accept-line widget to perform expansion: > > accept-line() { zle expand-word; zle .accept-line -- "$@" > zle -N accept-line > > (untested) > Daniel nothing seems to work I think there must be something 'funny' about the way a suffix alias works i.e it must be the first thing that the shell sees. -- zzapper https://twitter.com/dailyzshtip