From: Wayne Davison <wayned@users.sourceforge.net>
To: zsh-workers@sunsite.dk
Subject: Completion for darcs
Date: Fri, 24 Sep 2004 17:38:15 -0700 [thread overview]
Message-ID: <20040925003815.GD26071@blorf.net> (raw)
[-- 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 "$@"
next reply other threads:[~2004-09-25 0:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-25 0:38 Wayne Davison [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040925003815.GD26071@blorf.net \
--to=wayned@users.sourceforge.net \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).