Don't hardcode path to ifconfig.

This commit is contained in:
Ville Skyttä 2009-10-31 14:16:39 +02:00
parent 29ee9fb3f9
commit 503c224899

View File

@ -65,7 +65,7 @@ _ssh()
return 0
;;
-b)
COMPREPLY=( $( compgen -W "$(/sbin/ifconfig | \
COMPREPLY=( $( compgen -W "$( PATH="$PATH:/sbin" ifconfig | \
awk '/adr:/ {print $2}' | awk -F: '{print $2}' )" -- "$cur" ) )
return 0
;;