Make ssh -b completion work on FreeBSD and Solaris.

This commit is contained in:
Ville Skyttä 2010-05-11 00:52:57 +03:00
parent 783acae98c
commit bd35adfe21

View File

@ -6,8 +6,10 @@ have ssh &&
_ssh_bindaddress() _ssh_bindaddress()
{ {
COMPREPLY=( "${COMPREPLY[@]}" $( compgen -W \ COMPREPLY=( "${COMPREPLY[@]}" $( compgen -W \
"$( PATH="$PATH:/sbin" ifconfig | \ "$( PATH="$PATH:/sbin" ifconfig -a | \
sed -ne 's/.*addr:\([^[:space:]]*\).*/\1/p' )" -- "$cur" ) ) sed -ne 's/.*addr:\([^[:space:]]*\).*/\1/p' \
-ne 's/.*inet[[:space:]]\{1,\}\([^[:space:]]*\).*/\1/p' )" \
-- "$cur" ) )
} }
_ssh_ciphers() _ssh_ciphers()