Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: suffix alias on a generated file name
- X-seq: zsh-users 24567
- From: zzapper <david@xxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: suffix alias on a generated file name
- Date: Tue, 17 Dec 2019 10:02:37 -0000 (UTC)
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- Organization: Your Company
- References: <XnsAB2489C6C6331davidrayninfocouk@195.159.176.226> <20191214111751.ot4jd3o5esekqyfb@tarpaulin.shahaf.local2> <XnsAB26A6337DC1Ddavidrayninfocouk@195.159.176.226> <20191216035801.doeloio2cwauxguj@tarpaulin.shahaf.local2>
Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote in
news:20191216035801.doeloio2cwauxguj@tarpaulin.shahaf.local2:
> zzapper wrote on Sun, Dec 15, 2019 at 16:20:16 -0000:
>> Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author