fix interface completion, nd use _get_pword function
This commit is contained in:
parent
96a936443e
commit
89de94b2c7
@ -7,11 +7,11 @@ _arpspoof()
|
||||
|
||||
COMPREPLY=()
|
||||
cur=`_get_cword`
|
||||
prev=${COMP_WORDS[COMP_CWORD-1]}
|
||||
prev=`_get_pword`
|
||||
|
||||
case $prev in
|
||||
-i)
|
||||
_interfaces
|
||||
_available_interfaces
|
||||
return 0
|
||||
;;
|
||||
-t)
|
||||
|
Loading…
x
Reference in New Issue
Block a user