Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Completion script for the ctags program
On 24 Feb 2021, at 01:20, Jacob Gelbman <gelbman@xxxxxxxxx> wrote:
> local output=`ctags --version 2>&1`
Sorry if this was mentioned, i only glanced at the thread, but this type of
check is what _pick_variant is for. It's documented in zshcompsys(1), or you
can grep for it in other completion files to see it in action. In this case,
i guess something like:
local variant
_pick_variant -r variant \
universal='Universal Ctags' \
exuberant='Exuberant Ctags' \
emacs=Emacs \
bsd='usage: ctags' \
universal \
--version
dana
Messages sorted by:
Reverse Date,
Date,
Thread,
Author