diff --git a/completions/zsh/_ss-local b/completions/zsh/_ss-local new file mode 100644 index 00000000..9b6e4d64 --- /dev/null +++ b/completions/zsh/_ss-local @@ -0,0 +1,31 @@ +#compdef ss-local + +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)' + +_arguments "-h::" \ + "-s:server host:_hosts" \ + "-p:server port:" \ + "-l:local port:" \ + "-k:password:" \ + "-m:encrypt method:$ciphers" \ + "-a:run as user:_users" \ + "-f:pid file:_files" \ + "-t:timeout:" \ + "-c:configure file:_files" \ + "-n:max number of open files:" \ + "-i:bind interface:_net_interfaces" \ + "-b:local address:(127.0.0.1 \:\:1 0.0.0.0 \:\:)" \ + "-u:enable udp:" \ + "-U:udp only:" \ + "-v:verbose mode:" \ + "--reuse-port::" \ + "--fast-open::" \ + "--acl:acl file:_files" \ + "--mtu::" \ + "--mptcp::" \ + "--key:key in base64:" \ + "--plugin:plugin name:" \ + "--plugin-opts:plugin options:" \ + "--help::" + diff --git a/completions/zsh/_ss-manager b/completions/zsh/_ss-manager new file mode 100644 index 00000000..3e65f6c8 --- /dev/null +++ b/completions/zsh/_ss-manager @@ -0,0 +1,31 @@ +#compdef ss-manager + +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)' + +_arguments "-h::" \ + "-s:server host:_hosts" \ + "-p:server port:" \ + "-l:local port:" \ + "-k:password:" \ + "-m:encrypt method:$ciphers" \ + "-a:run as user:_users" \ + "-f:pid file:_files" \ + "-t:timeout:" \ + "-c:configure file:_files" \ + "-n:max number of open files:" \ + "-i:bind interface:_net_interfaces" \ + "-b:local address:(127.0.0.1 \:\:1 0.0.0.0 \:\:)" \ + "-u:enable udp:" \ + "-U:udp only:" \ + "-v:verbose mode:" \ + "--executable:path to ss-server:_files" \ + "--manager-address:manager address:" \ + "--reuse-port::" \ + "--acl:acl file:_files" \ + "--mtu::" \ + "--key:key in base64:" \ + "--plugin:plugin name:" \ + "--plugin-opts:plugin options:" \ + "--help::" + diff --git a/completions/zsh/_ss-redir b/completions/zsh/_ss-redir new file mode 100644 index 00000000..117f8b2a --- /dev/null +++ b/completions/zsh/_ss-redir @@ -0,0 +1,30 @@ +#compdef ss-redir + +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)' + +_arguments "-h::" \ + "-s:server host:_hosts" \ + "-p:server port:" \ + "-l:local port:" \ + "-k:password:" \ + "-m:encrypt method:$ciphers" \ + "-a:run as user:_users" \ + "-f:pid file:_files" \ + "-t:timeout:" \ + "-c:configure file:_files" \ + "-n:nofile:" \ + "-b:local address:(127.0.0.1 \:\:1 0.0.0.0 \:\:)" \ + "-u:enable udp:" \ + "-U:udp only:" \ + "-v:verbose mode:" \ + "--reuse-port::" \ + "--fast-open::" \ + "--acl:acl file:_files" \ + "--mtu::" \ + "--mptcp::" \ + "--key:key in base64:" \ + "--plugin:plugin name:" \ + "--plugin-opts:plugin options:" \ + "--help::" + diff --git a/completions/zsh/_ss-server b/completions/zsh/_ss-server new file mode 100644 index 00000000..030165fd --- /dev/null +++ b/completions/zsh/_ss-server @@ -0,0 +1,34 @@ +#compdef ss-server + +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)' + +_arguments "-h::" \ + "-s:server host:_hosts" \ + "-p:server port:" \ + "-l:local port:" \ + "-k:password:" \ + "-m:encrypt method:$ciphers" \ + "-a:run as user:_users" \ + "-f:pid file:_files" \ + "-t:timeout:" \ + "-c:configure file:_files" \ + "-n:max number of open files:" \ + "-i:bind interface:_net_interfaces" \ + "-b:local address:(127.0.0.1 \:\:1 0.0.0.0 \:\:)" \ + "-u:enable udp:" \ + "-U:udp only:" \ + "-v:verbose mode:" \ + "-6:ipv6 first:" \ + "-d:nameserver for internal dns:" \ + "--manager-address:manager address:" \ + "--reuse-port::" \ + "--fast-open::" \ + "--acl:acl file:_files" \ + "--mtu::" \ + "--mptcp::" \ + "--key:key in base64:" \ + "--plugin:plugin name:" \ + "--plugin-opts:plugin options:" \ + "--help::" + diff --git a/completions/zsh/_ss-tunnel b/completions/zsh/_ss-tunnel new file mode 100644 index 00000000..5a269900 --- /dev/null +++ b/completions/zsh/_ss-tunnel @@ -0,0 +1,30 @@ +#compdef ss-tunnel + +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)' + +_arguments "-h::" \ + "-s:server host:_hosts" \ + "-p:server port:" \ + "-l:local port:" \ + "-k:password:" \ + "-m:encrypt method:$ciphers" \ + "-a:run as user:_users" \ + "-f:pid file:_files" \ + "-t:timeout:" \ + "-c:configure file:_files" \ + "-n:nofile:" \ + "-i:bind interface:_net_interfaces" \ + "-b:local address:(127.0.0.1 \:\:1 0.0.0.0 \:\:)" \ + "-u:enable udp:" \ + "-U:udp only:" \ + "-v:verbose mode:" \ + "-L:destination server address and port:" \ + "--reuse-port::" \ + "--acl:acl file:_files" \ + "--mtu::" \ + "--key:key in base64:" \ + "--plugin:plugin name:" \ + "--plugin-opts:plugin options:" \ + "--help::" +