Make ssh -b completion work on FreeBSD and Solaris.
This commit is contained in:
parent
783acae98c
commit
bd35adfe21
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user