| DIR:/proc/self/root/proc/thread-self/root/usr/share/zsh/5.5.1/functions/ |
| Current File : //proc/self/root/proc/thread-self/root/usr/share/zsh/5.5.1/functions/_bind_addresses |
#autoload
local expl
case $OSTYPE in
aix*) _hosts "$@" ;;
darwin*|freebsd*|dragonfly*) _hosts "$@" ;;
irix*) _hosts "$@" ;;
# Couldn't find anything special for linux except for /proc/net/dev
# Is there any proc file which gives the formatted ip?
linux*) ;&
*)
_wanted bind-addresses expl 'bind address' compadd "$@" - \
${${${(M)${(f)"$(ifconfig -a)"}:#*addr:*}##*addr:( |)}%%(/| )*}
esac
|