zsh-workers
 help / color / mirror / code / Atom feed
* Completion for darcs
@ 2004-09-25  0:38 Wayne Davison
  2004-09-27  9:02 ` Oliver Kiddle
  0 siblings, 1 reply; 4+ messages in thread
From: Wayne Davison @ 2004-09-25  0:38 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 267 bytes --]

I've made some simple changes to the zsh-completion example that
ships with darcs (the version control system) and checked it into
the Completion/Unix/Command dir.  It seems to work well in my
testing so far.  I've attached the file to this email as well.

..wayne..

[-- Attachment #2: _darcs --]
[-- Type: text/plain, Size: 261 bytes --]

#compdef darcs

_darcs() {
    # 1 based array
    if (($CURRENT == 2)); then
        compadd -- $( darcs --commands | grep "^$PREFIX" )
        return 0
    fi

    compadd -- $( darcs ${words[2]} --list-option |  grep "^$PREFIX" )
    return 0
}

_darcs "$@"

^ permalink raw reply	[flat|nested] 4+ messages in thread
[parent not found: <20050401080620.GA16347@vandal.simcon-mt.de>]

end of thread, other threads:[~2005-04-05 13:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-25  0:38 Completion for darcs Wayne Davison
2004-09-27  9:02 ` Oliver Kiddle
2004-09-28  0:03   ` Wayne Davison
     [not found] <20050401080620.GA16347@vandal.simcon-mt.de>
     [not found] ` <20050401080914.GB16347@vandal.simcon-mt.de>
     [not found]   ` <424D152C.2030006@free.fr>
     [not found]     ` <20050401123620.GA2607@ppe.happygiraffe.net>
     [not found]       ` <424D4A38.6010607@free.fr>
     [not found]         ` <20050405072940.GA9105@a5.repetae.net>
2005-04-05 13:03           ` completion " Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).