Don't hardcode path to ifconfig.
This commit is contained in:
parent
29ee9fb3f9
commit
503c224899
@ -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
|
||||
;;
|
||||
|
Loading…
x
Reference in New Issue
Block a user