use _get_pword
This commit is contained in:
parent
f35923a505
commit
ed3a2f7786
@ -119,7 +119,7 @@ _ssh()
|
|||||||
|
|
||||||
COMPREPLY=()
|
COMPREPLY=()
|
||||||
cur=`_get_cword :`
|
cur=`_get_cword :`
|
||||||
prev=${COMP_WORDS[COMP_CWORD-1]}
|
prev=`_get_pword`
|
||||||
|
|
||||||
_ssh_suboption_check && return 0
|
_ssh_suboption_check && return 0
|
||||||
|
|
||||||
@ -197,7 +197,7 @@ _sftp()
|
|||||||
|
|
||||||
COMPREPLY=()
|
COMPREPLY=()
|
||||||
cur=`_get_cword`
|
cur=`_get_cword`
|
||||||
prev=${COMP_WORDS[COMP_CWORD-1]}
|
prev=`_get_pword`
|
||||||
|
|
||||||
_ssh_suboption_check && return 0
|
_ssh_suboption_check && return 0
|
||||||
|
|
||||||
@ -398,7 +398,7 @@ _ssh_copy_id()
|
|||||||
|
|
||||||
COMPREPLY=()
|
COMPREPLY=()
|
||||||
cur=`_get_cword`
|
cur=`_get_cword`
|
||||||
prev=${COMP_WORDS[COMP_CWORD-1]}
|
prev=`_get_pword`
|
||||||
|
|
||||||
case $prev in
|
case $prev in
|
||||||
-i)
|
-i)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user