Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Completion for darcs



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