fix interface completion, nd use _get_pword function

This commit is contained in:
Guillaume Rousse 2010-04-19 19:45:06 +02:00
parent 96a936443e
commit 89de94b2c7

View File

@ -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)