From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10378 invoked by alias); 13 Feb 2010 12:49:17 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 27706 Received: (qmail 18553 invoked from network); 13 Feb 2010 12:49:05 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS autolearn=ham version=3.2.5 Received-SPF: none (ns1.primenet.com.au: domain at bewatermyfriend.org does not designate permitted sender hosts) From: Frank Terbeck To: zsh-workers@zsh.org Cc: Nikolai Weibull Subject: Re: PATCH: _git: Completion for `notes' sub-command In-Reply-To: <1266064769-20842-1-git-send-email-ft@bewatermyfriend.org> (Frank Terbeck's message of "Sat, 13 Feb 2010 13:39:29 +0100") References: <871vgpz6v6.fsf@ft.bewatermyfriend.org> <1266064769-20842-1-git-send-email-ft@bewatermyfriend.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Date: Sat, 13 Feb 2010 13:43:09 +0100 Message-ID: <87hbplxq5e.fsf@ft.bewatermyfriend.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Df-Sender: 430444 Frank Terbeck wrote: [...] > People who cannot be bothered to "drop the dash" should consider adding > something like this to their .zshrc (this assumes they have added the > output of `git --exec-path' to their $PATH - otherwise this doesn't make > sense whatsoever): > > compdef _git ${(M)${(k)commands}:#git-*}; do The '; do' is there only be accident. It should read: compdef _git ${(M)${(k)commands}:#git-*} Regards, Frank -- In protocol design, perfection has been reached not when there is nothing left to add, but when there is nothing left to take away. -- RFC 1925