mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-11-01 23:43:41 +00:00
fix -l completion
This commit is contained in:
@@ -9,7 +9,7 @@ _ss_local()
|
||||
-c|-f|--acl)
|
||||
_filedir || COMPREPLY=( $(compgen -o plusdirs -f ${cur}) )
|
||||
;;
|
||||
-s|-b|-l)
|
||||
-s|-b)
|
||||
_known_hosts_real -- "${cur}" || OMPREPLY=( $(compgen -A hostname -- ${cur}) )
|
||||
;;
|
||||
-m)
|
||||
@@ -18,7 +18,7 @@ _ss_local()
|
||||
-a)
|
||||
_allowed_users || COMPREPLY=( $(compgen -u -- ${cur}) )
|
||||
;;
|
||||
-p|-k|-t|-n|--mtu)
|
||||
-p|-k|-t|-n|--mtu|-l)
|
||||
;;
|
||||
-i)
|
||||
_available_interfaces -a || true
|
||||
|
||||
@@ -9,7 +9,7 @@ _ss_manager()
|
||||
-c|-f|--executable)
|
||||
_filedir || COMPREPLY=( $(compgen -o plusdirs -f ${cur}) )
|
||||
;;
|
||||
-s|-b|-l)
|
||||
-s|-b)
|
||||
_known_hosts_real -- "${cur}" || OMPREPLY=( $(compgen -A hostname -- ${cur}) )
|
||||
;;
|
||||
-L)
|
||||
@@ -22,7 +22,7 @@ _ss_manager()
|
||||
-a)
|
||||
_allowed_users || COMPREPLY=( $(compgen -u -- ${cur}) )
|
||||
;;
|
||||
-p|-k|-t|-n|--mtu)
|
||||
-p|-k|-t|-n|--mtu|-l)
|
||||
;;
|
||||
-i)
|
||||
_available_interfaces -a || true
|
||||
|
||||
@@ -9,7 +9,7 @@ _ss_redir()
|
||||
-c|-f)
|
||||
_filedir || COMPREPLY=( $(compgen -o plusdirs -f ${cur}) )
|
||||
;;
|
||||
-s|-b|-l)
|
||||
-s|-b)
|
||||
_known_hosts_real -- "${cur}" || OMPREPLY=( $(compgen -A hostname -- ${cur}) )
|
||||
;;
|
||||
-m)
|
||||
@@ -18,7 +18,7 @@ _ss_redir()
|
||||
-a)
|
||||
_allowed_users || COMPREPLY=( $(compgen -u -- ${cur}) )
|
||||
;;
|
||||
-p|-k|-t|-n|--mtu)
|
||||
-p|-k|-t|-n|--mtu|-l)
|
||||
;;
|
||||
*)
|
||||
COMPREPLY+=( $(compgen -W "${opts}" -- ${cur}) )
|
||||
|
||||
@@ -10,7 +10,7 @@ _ss_tunnel()
|
||||
-c|-f)
|
||||
_filedir || COMPREPLY=( $(compgen -o plusdirs -f ${cur}) )
|
||||
;;
|
||||
-s|-b|-l)
|
||||
-s|-b)
|
||||
_known_hosts_real -- "${cur}" || OMPREPLY=( $(compgen -A hostname -- ${cur}) )
|
||||
;;
|
||||
-L)
|
||||
@@ -23,7 +23,7 @@ _ss_tunnel()
|
||||
-a)
|
||||
_allowed_users || COMPREPLY=( $(compgen -u -- ${cur}) )
|
||||
;;
|
||||
-p|-k|-t|-n|--mtu)
|
||||
-p|-k|-t|-n|--mtu|-l)
|
||||
;;
|
||||
-i)
|
||||
_available_interfaces -a || true
|
||||
|
||||
Reference in New Issue
Block a user