Browse Source
`xchacha20-ietf-poly1305` completion
pull/2694/head
汪心禾
5 years ago
No known key found for this signature in database
GPG Key ID: 792B3266B499A3B
10 changed files with
10 additions and
10 deletions
-
completions/bash/ss-local
-
completions/bash/ss-manager
-
completions/bash/ss-redir
-
completions/bash/ss-server
-
completions/bash/ss-tunnel
-
completions/zsh/_ss-local
-
completions/zsh/_ss-manager
-
completions/zsh/_ss-redir
-
completions/zsh/_ss-server
-
completions/zsh/_ss-tunnel
|
@ -2,7 +2,7 @@ _ss_local() |
|
|
{ |
|
|
{ |
|
|
local cur prev opts ciphers |
|
|
local cur prev opts ciphers |
|
|
opts='-s -p -l -k -m -a -f -t -c -n -i -b -u -U -v -h --reuse-port --fast-open --acl --mtu --mptcp --no-delay --key --plugin --plugin-opts --help' |
|
|
opts='-s -p -l -k -m -a -f -t -c -n -i -b -u -U -v -h --reuse-port --fast-open --acl --mtu --mptcp --no-delay --key --plugin --plugin-opts --help' |
|
|
ciphers='rc4-md5 aes-128-gcm aes-192-gcm aes-256-gcm aes-128-cfb aes-192-cfb aes-256-cfb aes-128-ctr aes-192-ctr aes-256-ctr camellia-128-cfb camellia-192-cfb camellia-256-cfb bf-cfb chacha20-ietf-poly1305 salsa20 chacha20 chacha20-ietf' |
|
|
|
|
|
|
|
|
ciphers='rc4-md5 aes-128-gcm aes-192-gcm aes-256-gcm aes-128-cfb aes-192-cfb aes-256-cfb aes-128-ctr aes-192-ctr aes-256-ctr camellia-128-cfb camellia-192-cfb camellia-256-cfb bf-cfb chacha20-ietf-poly1305 xchacha20-ietf-poly1305 salsa20 chacha20 chacha20-ietf' |
|
|
cur=${COMP_WORDS[COMP_CWORD]} |
|
|
cur=${COMP_WORDS[COMP_CWORD]} |
|
|
prev="${COMP_WORDS[COMP_CWORD-1]}" |
|
|
prev="${COMP_WORDS[COMP_CWORD-1]}" |
|
|
case "$prev" in |
|
|
case "$prev" in |
|
|
|
@ -2,7 +2,7 @@ _ss_manager() |
|
|
{ |
|
|
{ |
|
|
local cur prev opts ciphers |
|
|
local cur prev opts ciphers |
|
|
opts='-s -p -l -k -m -a -f -t -c -n -i -b -u -U -v -h --reuse-port --manager-address --executable --mtu --mptcp --plugin --plugin-opts --help' |
|
|
opts='-s -p -l -k -m -a -f -t -c -n -i -b -u -U -v -h --reuse-port --manager-address --executable --mtu --mptcp --plugin --plugin-opts --help' |
|
|
ciphers='rc4-md5 aes-128-gcm aes-192-gcm aes-256-gcm aes-128-cfb aes-192-cfb aes-256-cfb aes-128-ctr aes-192-ctr aes-256-ctr camellia-128-cfb camellia-192-cfb camellia-256-cfb bf-cfb chacha20-ietf-poly1305 salsa20 chacha20 chacha20-ietf' |
|
|
|
|
|
|
|
|
ciphers='rc4-md5 aes-128-gcm aes-192-gcm aes-256-gcm aes-128-cfb aes-192-cfb aes-256-cfb aes-128-ctr aes-192-ctr aes-256-ctr camellia-128-cfb camellia-192-cfb camellia-256-cfb bf-cfb chacha20-ietf-poly1305 xchacha20-ietf-poly1305 salsa20 chacha20 chacha20-ietf' |
|
|
cur=${COMP_WORDS[COMP_CWORD]} |
|
|
cur=${COMP_WORDS[COMP_CWORD]} |
|
|
prev="${COMP_WORDS[COMP_CWORD-1]}" |
|
|
prev="${COMP_WORDS[COMP_CWORD-1]}" |
|
|
case "$prev" in |
|
|
case "$prev" in |
|
|
|
@ -2,7 +2,7 @@ _ss_redir() |
|
|
{ |
|
|
{ |
|
|
local cur prev opts ciphers |
|
|
local cur prev opts ciphers |
|
|
opts='-s -p -l -k -m -a -f -t -c -n -b -u -U -v -h --reuse-port --mtu --mptcp --key --plugin --plugin-opts --help' |
|
|
opts='-s -p -l -k -m -a -f -t -c -n -b -u -U -v -h --reuse-port --mtu --mptcp --key --plugin --plugin-opts --help' |
|
|
ciphers='rc4-md5 aes-128-gcm aes-192-gcm aes-256-gcm aes-128-cfb aes-192-cfb aes-256-cfb aes-128-ctr aes-192-ctr aes-256-ctr camellia-128-cfb camellia-192-cfb camellia-256-cfb bf-cfb chacha20-ietf-poly1305 salsa20 chacha20 chacha20-ietf' |
|
|
|
|
|
|
|
|
ciphers='rc4-md5 aes-128-gcm aes-192-gcm aes-256-gcm aes-128-cfb aes-192-cfb aes-256-cfb aes-128-ctr aes-192-ctr aes-256-ctr camellia-128-cfb camellia-192-cfb camellia-256-cfb bf-cfb chacha20-ietf-poly1305 xchacha20-ietf-poly1305 salsa20 chacha20 chacha20-ietf' |
|
|
cur=${COMP_WORDS[COMP_CWORD]} |
|
|
cur=${COMP_WORDS[COMP_CWORD]} |
|
|
prev="${COMP_WORDS[COMP_CWORD-1]}" |
|
|
prev="${COMP_WORDS[COMP_CWORD-1]}" |
|
|
case "$prev" in |
|
|
case "$prev" in |
|
|
|
@ -2,7 +2,7 @@ _ss_server() |
|
|
{ |
|
|
{ |
|
|
local cur prev opts ciphers |
|
|
local cur prev opts ciphers |
|
|
opts='-s -p -l -k -m -a -f -t -c -n -i -b -u -U -6 -d -v -h --reuse-port --fast-open --acl --manager-address --mtu --mptcp --no-delay --key --plugin --plugin-opts --help' |
|
|
opts='-s -p -l -k -m -a -f -t -c -n -i -b -u -U -6 -d -v -h --reuse-port --fast-open --acl --manager-address --mtu --mptcp --no-delay --key --plugin --plugin-opts --help' |
|
|
ciphers='rc4-md5 aes-128-gcm aes-192-gcm aes-256-gcm aes-128-cfb aes-192-cfb aes-256-cfb aes-128-ctr aes-192-ctr aes-256-ctr camellia-128-cfb camellia-192-cfb camellia-256-cfb bf-cfb chacha20-ietf-poly1305 salsa20 chacha20 chacha20-ietf' |
|
|
|
|
|
|
|
|
ciphers='rc4-md5 aes-128-gcm aes-192-gcm aes-256-gcm aes-128-cfb aes-192-cfb aes-256-cfb aes-128-ctr aes-192-ctr aes-256-ctr camellia-128-cfb camellia-192-cfb camellia-256-cfb bf-cfb chacha20-ietf-poly1305 xchacha20-ietf-poly1305 salsa20 chacha20 chacha20-ietf' |
|
|
COMPREPLY=() |
|
|
COMPREPLY=() |
|
|
cur=${COMP_WORDS[COMP_CWORD]} |
|
|
cur=${COMP_WORDS[COMP_CWORD]} |
|
|
prev="${COMP_WORDS[COMP_CWORD-1]}" |
|
|
prev="${COMP_WORDS[COMP_CWORD-1]}" |
|
|
|
@ -2,7 +2,7 @@ _ss_tunnel() |
|
|
{ |
|
|
{ |
|
|
local cur prev opts ciphers |
|
|
local cur prev opts ciphers |
|
|
opts='-s -p -l -k -m -a -f -t -c -n -i -b -u -U -L -v -h --reuse-port --mtu --mptcp --key --plugin --plugin-opts --help' |
|
|
opts='-s -p -l -k -m -a -f -t -c -n -i -b -u -U -L -v -h --reuse-port --mtu --mptcp --key --plugin --plugin-opts --help' |
|
|
ciphers='rc4-md5 aes-128-gcm aes-192-gcm aes-256-gcm aes-128-cfb aes-192-cfb aes-256-cfb aes-128-ctr aes-192-ctr aes-256-ctr camellia-128-cfb camellia-192-cfb camellia-256-cfb bf-cfb chacha20-ietf-poly1305 salsa20 chacha20 chacha20-ietf' |
|
|
|
|
|
|
|
|
ciphers='rc4-md5 aes-128-gcm aes-192-gcm aes-256-gcm aes-128-cfb aes-192-cfb aes-256-cfb aes-128-ctr aes-192-ctr aes-256-ctr camellia-128-cfb camellia-192-cfb camellia-256-cfb bf-cfb chacha20-ietf-poly1305 xchacha20-ietf-poly1305 salsa20 chacha20 chacha20-ietf' |
|
|
cur=${COMP_WORDS[COMP_CWORD]} |
|
|
cur=${COMP_WORDS[COMP_CWORD]} |
|
|
prev="${COMP_WORDS[COMP_CWORD-1]}" |
|
|
prev="${COMP_WORDS[COMP_CWORD-1]}" |
|
|
compopt +o nospace |
|
|
compopt +o nospace |
|
|
|
@ -1,7 +1,7 @@ |
|
|
#compdef ss-local |
|
|
#compdef ss-local |
|
|
|
|
|
|
|
|
local ciphers |
|
|
local ciphers |
|
|
ciphers='(rc4-md5 aes-128-gcm aes-192-gcm aes-256-gcm aes-128-cfb aes-192-cfb aes-256-cfb aes-128-ctr aes-192-ctr aes-256-ctr camellia-128-cfb camellia-192-cfb camellia-256-cfb bf-cfb chacha20-ietf-poly1305 salsa20 chacha20 chacha20-ietf)' |
|
|
|
|
|
|
|
|
ciphers='(rc4-md5 aes-128-gcm aes-192-gcm aes-256-gcm aes-128-cfb aes-192-cfb aes-256-cfb aes-128-ctr aes-192-ctr aes-256-ctr camellia-128-cfb camellia-192-cfb camellia-256-cfb bf-cfb chacha20-ietf-poly1305 xchacha20-ietf-poly1305 salsa20 chacha20 chacha20-ietf)' |
|
|
|
|
|
|
|
|
_arguments "-h::" \ |
|
|
_arguments "-h::" \ |
|
|
"-s:server host:_hosts" \ |
|
|
"-s:server host:_hosts" \ |
|
|
|
@ -1,7 +1,7 @@ |
|
|
#compdef ss-manager |
|
|
#compdef ss-manager |
|
|
|
|
|
|
|
|
local ciphers |
|
|
local ciphers |
|
|
ciphers='(rc4-md5 aes-128-gcm aes-192-gcm aes-256-gcm aes-128-cfb aes-192-cfb aes-256-cfb aes-128-ctr aes-192-ctr aes-256-ctr camellia-128-cfb camellia-192-cfb camellia-256-cfb bf-cfb chacha20-ietf-poly1305 salsa20 chacha20 chacha20-ietf)' |
|
|
|
|
|
|
|
|
ciphers='(rc4-md5 aes-128-gcm aes-192-gcm aes-256-gcm aes-128-cfb aes-192-cfb aes-256-cfb aes-128-ctr aes-192-ctr aes-256-ctr camellia-128-cfb camellia-192-cfb camellia-256-cfb bf-cfb chacha20-ietf-poly1305 xchacha20-ietf-poly1305 salsa20 chacha20 chacha20-ietf)' |
|
|
|
|
|
|
|
|
_arguments "-h::" \ |
|
|
_arguments "-h::" \ |
|
|
"-s:server host:_hosts" \ |
|
|
"-s:server host:_hosts" \ |
|
|
|
@ -1,7 +1,7 @@ |
|
|
#compdef ss-redir |
|
|
#compdef ss-redir |
|
|
|
|
|
|
|
|
local ciphers |
|
|
local ciphers |
|
|
ciphers='(rc4-md5 aes-128-gcm aes-192-gcm aes-256-gcm aes-128-cfb aes-192-cfb aes-256-cfb aes-128-ctr aes-192-ctr aes-256-ctr camellia-128-cfb camellia-192-cfb camellia-256-cfb bf-cfb chacha20-ietf-poly1305 salsa20 chacha20 chacha20-ietf)' |
|
|
|
|
|
|
|
|
ciphers='(rc4-md5 aes-128-gcm aes-192-gcm aes-256-gcm aes-128-cfb aes-192-cfb aes-256-cfb aes-128-ctr aes-192-ctr aes-256-ctr camellia-128-cfb camellia-192-cfb camellia-256-cfb bf-cfb chacha20-ietf-poly1305 xchacha20-ietf-poly1305 salsa20 chacha20 chacha20-ietf)' |
|
|
|
|
|
|
|
|
_arguments "-h::" \ |
|
|
_arguments "-h::" \ |
|
|
"-s:server host:_hosts" \ |
|
|
"-s:server host:_hosts" \ |
|
|
|
@ -1,7 +1,7 @@ |
|
|
#compdef ss-server |
|
|
#compdef ss-server |
|
|
|
|
|
|
|
|
local ciphers |
|
|
local ciphers |
|
|
ciphers='(rc4-md5 aes-128-gcm aes-192-gcm aes-256-gcm aes-128-cfb aes-192-cfb aes-256-cfb aes-128-ctr aes-192-ctr aes-256-ctr camellia-128-cfb camellia-192-cfb camellia-256-cfb bf-cfb chacha20-ietf-poly1305 salsa20 chacha20 chacha20-ietf)' |
|
|
|
|
|
|
|
|
ciphers='(rc4-md5 aes-128-gcm aes-192-gcm aes-256-gcm aes-128-cfb aes-192-cfb aes-256-cfb aes-128-ctr aes-192-ctr aes-256-ctr camellia-128-cfb camellia-192-cfb camellia-256-cfb bf-cfb chacha20-ietf-poly1305 xchacha20-ietf-poly1305 salsa20 chacha20 chacha20-ietf)' |
|
|
|
|
|
|
|
|
_arguments "-h::" \ |
|
|
_arguments "-h::" \ |
|
|
"-s:server host:_hosts" \ |
|
|
"-s:server host:_hosts" \ |
|
|
|
@ -1,7 +1,7 @@ |
|
|
#compdef ss-tunnel |
|
|
#compdef ss-tunnel |
|
|
|
|
|
|
|
|
local ciphers |
|
|
local ciphers |
|
|
ciphers='(rc4-md5 aes-128-gcm aes-192-gcm aes-256-gcm aes-128-cfb aes-192-cfb aes-256-cfb aes-128-ctr aes-192-ctr aes-256-ctr camellia-128-cfb camellia-192-cfb camellia-256-cfb bf-cfb chacha20-ietf-poly1305 salsa20 chacha20 chacha20-ietf)' |
|
|
|
|
|
|
|
|
ciphers='(rc4-md5 aes-128-gcm aes-192-gcm aes-256-gcm aes-128-cfb aes-192-cfb aes-256-cfb aes-128-ctr aes-192-ctr aes-256-ctr camellia-128-cfb camellia-192-cfb camellia-256-cfb bf-cfb chacha20-ietf-poly1305 xchacha20-ietf-poly1305 salsa20 chacha20 chacha20-ietf)' |
|
|
|
|
|
|
|
|
_arguments "-h::" \ |
|
|
_arguments "-h::" \ |
|
|
"-s:server host:_hosts" \ |
|
|
"-s:server host:_hosts" \ |
|
|