fix interface completion, nd use _get_pword function
This commit is contained in:
parent
96a936443e
commit
89de94b2c7
@ -7,11 +7,11 @@ _arpspoof()
|
|||||||
|
|
||||||
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)
|
||||||
_interfaces
|
_available_interfaces
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
-t)
|
-t)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user