forked from vodik/envoy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzsh-completion
30 lines (28 loc) · 1.01 KB
/
zsh-completion
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#compdef envoy envoyd envoy-exec
zstyle -a ":completion:${curcontext}:" environ environ
case "$service" in
envoy)
_arguments -s \
{-h,--help}'[display this help]'\
{-v,--version}'[display version]'\
{-a,--add}'[add private key identities]':files:_files \
{-k,--clear}'[force identities to expire (gpg-agent only)]'\
{-K,--kill}'[kill the running agent]'\
{-l,--list}'[list fingerprints of all loaded identities]'\
{-u,--unlock=-}'[unlock the agent''s keyring (gpg-agent only)]'\
{-p,--print}'[print out environmental arguments]' \
{-s,--sh}'[print sh style commands]' \
{-c,--csh}'[print csh style commands]' \
{-f,--fish}'[print fish style commands]' \
{-t,--agent=-}'[set the prefered to start]:agents:(ssh-agent gpg-agent)'
;;
envoyd)
_arguments -s \
{-h,--help}'[display this help]'\
{-v,--version}'[display version]'\
{-t,--agent=-}'[set the prefered to start]:agents:(ssh-agent gpg-agent)'
;;
envoy-exec)
_arguments -s '*::arguments: _normal'
;;
esac