Browse Source

fix -l completion

pull/962/head
Rayson zhu 8 years ago
parent
commit
48d159504f
4 changed files with 8 additions and 8 deletions
  1. 4
      completions/bash/ss-local
  2. 4
      completions/bash/ss-manager
  3. 4
      completions/bash/ss-redir
  4. 4
      completions/bash/ss-tunnel

4
completions/bash/ss-local

@ -9,7 +9,7 @@ _ss_local()
-c|-f|--acl) -c|-f|--acl)
_filedir || COMPREPLY=( $(compgen -o plusdirs -f ${cur}) ) _filedir || COMPREPLY=( $(compgen -o plusdirs -f ${cur}) )
;; ;;
-s|-b|-l)
-s|-b)
_known_hosts_real -- "${cur}" || OMPREPLY=( $(compgen -A hostname -- ${cur}) ) _known_hosts_real -- "${cur}" || OMPREPLY=( $(compgen -A hostname -- ${cur}) )
;; ;;
-m) -m)
@ -18,7 +18,7 @@ _ss_local()
-a) -a)
_allowed_users || COMPREPLY=( $(compgen -u -- ${cur}) ) _allowed_users || COMPREPLY=( $(compgen -u -- ${cur}) )
;; ;;
-p|-k|-t|-n|--mtu)
-p|-k|-t|-n|--mtu|-l)
;; ;;
-i) -i)
_available_interfaces -a || true _available_interfaces -a || true

4
completions/bash/ss-manager

@ -9,7 +9,7 @@ _ss_manager()
-c|-f|--executable) -c|-f|--executable)
_filedir || COMPREPLY=( $(compgen -o plusdirs -f ${cur}) ) _filedir || COMPREPLY=( $(compgen -o plusdirs -f ${cur}) )
;; ;;
-s|-b|-l)
-s|-b)
_known_hosts_real -- "${cur}" || OMPREPLY=( $(compgen -A hostname -- ${cur}) ) _known_hosts_real -- "${cur}" || OMPREPLY=( $(compgen -A hostname -- ${cur}) )
;; ;;
-L) -L)
@ -22,7 +22,7 @@ _ss_manager()
-a) -a)
_allowed_users || COMPREPLY=( $(compgen -u -- ${cur}) ) _allowed_users || COMPREPLY=( $(compgen -u -- ${cur}) )
;; ;;
-p|-k|-t|-n|--mtu)
-p|-k|-t|-n|--mtu|-l)
;; ;;
-i) -i)
_available_interfaces -a || true _available_interfaces -a || true

4
completions/bash/ss-redir

@ -9,7 +9,7 @@ _ss_redir()
-c|-f) -c|-f)
_filedir || COMPREPLY=( $(compgen -o plusdirs -f ${cur}) ) _filedir || COMPREPLY=( $(compgen -o plusdirs -f ${cur}) )
;; ;;
-s|-b|-l)
-s|-b)
_known_hosts_real -- "${cur}" || OMPREPLY=( $(compgen -A hostname -- ${cur}) ) _known_hosts_real -- "${cur}" || OMPREPLY=( $(compgen -A hostname -- ${cur}) )
;; ;;
-m) -m)
@ -18,7 +18,7 @@ _ss_redir()
-a) -a)
_allowed_users || COMPREPLY=( $(compgen -u -- ${cur}) ) _allowed_users || COMPREPLY=( $(compgen -u -- ${cur}) )
;; ;;
-p|-k|-t|-n|--mtu)
-p|-k|-t|-n|--mtu|-l)
;; ;;
*) *)
COMPREPLY+=( $(compgen -W "${opts}" -- ${cur}) ) COMPREPLY+=( $(compgen -W "${opts}" -- ${cur}) )

4
completions/bash/ss-tunnel

@ -10,7 +10,7 @@ _ss_tunnel()
-c|-f) -c|-f)
_filedir || COMPREPLY=( $(compgen -o plusdirs -f ${cur}) ) _filedir || COMPREPLY=( $(compgen -o plusdirs -f ${cur}) )
;; ;;
-s|-b|-l)
-s|-b)
_known_hosts_real -- "${cur}" || OMPREPLY=( $(compgen -A hostname -- ${cur}) ) _known_hosts_real -- "${cur}" || OMPREPLY=( $(compgen -A hostname -- ${cur}) )
;; ;;
-L) -L)
@ -23,7 +23,7 @@ _ss_tunnel()
-a) -a)
_allowed_users || COMPREPLY=( $(compgen -u -- ${cur}) ) _allowed_users || COMPREPLY=( $(compgen -u -- ${cur}) )
;; ;;
-p|-k|-t|-n|--mtu)
-p|-k|-t|-n|--mtu|-l)
;; ;;
-i) -i)
_available_interfaces -a || true _available_interfaces -a || true

Loading…
Cancel
Save