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