Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Alias and zstyle contexts
- X-seq: zsh-users 19507
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: Alias and zstyle contexts
- Date: Tue, 9 Dec 2014 00:24:34 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=oKClWPrUIXKL/q90471CJ8/DJISC/fGpRht+Bo++Zq8=; b=JbsvvTGGI9hV/5GZJ3YSXKkGxEOLpiAJTet0nm1t2SzJI18ryloFiqoUPhSHJ3txKh KibDP/ehjkdtdW5okA+1UvwJWnAJ16zpxejWfybUVt9BVncmDIAhCFtKqHnqtXmUWIDu LXV2mol8W68RMHDZs0pg7p/O2b2/FLxwAO+X9fppZe1nQNMq7zxd63uXPYJ3g1SRV99w HmPx5UoURN49Nzf5/tCR7IF7C6b4iKaTf9IyOhPDM5oxfLQxgrMgfh+JJXTNoIqwkGKQ yu6u1FCjNoqzjdUU22PlloVpPPFYCUir/7X4sAixdFYE5SbyyuxYU8oMZuPGsjjhD/Wt DSUQ==
- In-reply-to: <20141208230255.GA6029@rikku>
- 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: <20141208230255.GA6029@rikku>
On Tue, Dec 9, 2014 at 12:02 AM, Silas Silva <silasdb@xxxxxxxxx> wrote:
> Hi there!
>
> Fortunatelly, aliases use the same context of original commands, which
> which make things much easier. But a little problem just came up:
>
> mutt's -f option looks for mailboxes using the mail-directory style. I
> have a "muttw" alias that I'd like to load mailboxes from another
> directory, but the context is the same.
>
> I could solve this having a function called muttw, copying original
> _mutt completion to _muttw and changing just one line, but this looks
> ugly. Is there an simpler way?
>
> Thank you very much!
Just making a function and saying compdef muttw=mutt should be enough.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author