zsh-workers
 help / color / mirror / code / Atom feed
3460b7959ed36dde112a4fc703548f4d93710ec0 blob 416 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
 
#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
debug log:

solving 3460b7959 ...
found 3460b7959 in https://git.vuxu.org/mirror/zsh/

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).