fix -l completion

This commit is contained in:
Rayson zhu
2016-11-20 01:32:18 +08:00
parent a6ef853e2b
commit 48d159504f
4 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -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
+2 -2
View File
@@ -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
+2 -2
View File
@@ -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}) )
+2 -2
View File
@@ -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