Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Alias command /and/ flags
- X-seq: zsh-users 22127
- From: Yuri D'Elia <wavexx@xxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Alias command /and/ flags
- Date: Wed, 23 Nov 2016 11:12:19 +0100
- Cancel-lock: sha1:EpL31aC1CMLPPs2VDkRb8TBFGOk=
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <878tsbfjs0.fsf@wavexx.thregr.org> <CAH+w=7ZM=t_YHUkAaWdckDnAWgnOQGnHhePZPjdzK1KU+qsjKw@mail.gmail.com>
On Tue, Nov 22 2016, Bart Schaefer wrote:
>> I can think of a way by defining a "cmd" function and do the checking on
>> the arguments myself
>
> This is probably going to be the simplest option that will cover your
> requirements. There are also various ways to attack this through
> custom ZLE widgets but that would get even more esoteric.
The function approach is fine for me, it was mostly a curiosity.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author