Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Completion for darcs
- X-seq: zsh-workers 20409
- From: Wayne Davison <wayned@xxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Completion for darcs
- Date: Fri, 24 Sep 2004 17:38:15 -0700
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
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..
#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 "$@"
Messages sorted by:
Reverse Date,
Date,
Thread,
Author