From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13493 invoked by alias); 8 Dec 2014 23:24:40 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 19507 Received: (qmail 12696 invoked from network); 8 Dec 2014 23:24:39 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 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== MIME-Version: 1.0 X-Received: by 10.42.129.140 with SMTP id q12mr27607669ics.68.1418081074355; Mon, 08 Dec 2014 15:24:34 -0800 (PST) In-Reply-To: <20141208230255.GA6029@rikku> References: <20141208230255.GA6029@rikku> Date: Tue, 9 Dec 2014 00:24:34 +0100 Message-ID: Subject: Re: Alias and zstyle contexts From: Mikael Magnusson To: Zsh Users Content-Type: text/plain; charset=UTF-8 On Tue, Dec 9, 2014 at 12:02 AM, Silas Silva 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