Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: suffix alias on a generated file name



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