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

Re: Alias and zstyle contexts



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