Add zsh completion file

This commit is contained in:
Freed-Wu
2022-03-30 14:16:06 +08:00
committed by rofl0r
parent 0a4daa62d6
commit 04023d3811
2 changed files with 20 additions and 2 deletions

12
completions/_proxychains Normal file
View File

@ -0,0 +1,12 @@
#compdef proxychains
setopt localoptions extended_glob
local -a _comp_priv_prefix
_arguments \
'(- *)--help[More help in README file]' \
'(-q)-q[makes proxychains quiet - this overrides the config setting]' \
'(-f)-f[allows one to manually specify a configfile to use]:filename:_files' \
'(-)1:command: _command_names -e' \
'*::arguments:{ _comp_priv_prefix=( '$words[1]' -n ${(kv)opt_args[(I)(-[ugHEP]|--(user|group|set-home|preserve-env|preserve-groups))]} ) ; _normal }'