* PATCH: _bind_addresses
@ 2006-10-03 16:17 Clint Adams
0 siblings, 0 replies; only message in thread
From: Clint Adams @ 2006-10-03 16:17 UTC (permalink / raw)
To: zsh-workers
>From R.Ramkumar. Obviously it could be improved.
Index: Completion/Unix/Type/_bind_addresses
===================================================================
RCS file: Completion/Unix/Type/_bind_addresses
diff -N Completion/Unix/Type/_bind_addresses
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ Completion/Unix/Type/_bind_addresses 3 Oct 2006 16:16:30 -0000
@@ -0,0 +1,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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-10-03 16:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-03 16:17 PATCH: _bind_addresses Clint Adams
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).