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