blob: e3669c071e2d7bcf80e8f041a1d50fa19b57b7d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#compdef openrussian
# FIXME: If supported by `-C`, we could even show translations in the completions'
# help strings.
_get_terms() {
compadd "${(@f)"$(openrussian -C "$words[-1]" 2>/dev/null)"}"
}
_arguments '-Len[Generate English translations]' '-Lde[Generate German translations]' \
'-V[Verbatim matching (no case folding and inflections)]' \
'-p[Print Troff code to stdout]' \
'*:term:_get_terms'
|