1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-10-02 08:51:18 +02:00
zsh/Completion/Unix/Command/_darcs
2004-09-28 00:02:35 +00:00

12 lines
369 B
Plaintext

#compdef darcs
if (($CURRENT == 2)); then
# We're completing the first word after "darcs" -- the command.
_wanted command expl 'darcs command' \
compadd -- $( darcs --commands )
else
# Find the options/files/URL/etc. for the current command by using darcs.
_wanted args expl 'arg for darcs command' \
compadd -- $( darcs ${words[2]} --list-option )
fi