zsh-workers
 help / color / mirror / code / Atom feed
From: Clint Adams <clint@zsh.org>
To: Julius Plenz <jp@cvmx.de>
Cc: zsh-workers@sunsite.dk
Subject: Re: Completions for pump and dhclient
Date: Mon, 25 Jul 2005 19:53:42 -0400	[thread overview]
Message-ID: <20050725235342.GA1204@scowler.net> (raw)
In-Reply-To: <20050725232931.GE3614@cvmx.de>

> Yesterday I wrote two completions for "dhclient" and "pump". You can
> get them at http://42.vg/71384

Better to actually send them to the mailing list.

Index: Completion/Unix/Command/_pump
===================================================================
RCS file: Completion/Unix/Command/_pump
diff -N Completion/Unix/Command/_pump
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ Completion/Unix/Command/_pump	25 Jul 2005 23:52:09 -0000
@@ -0,0 +1,24 @@
+#compdef pump
+
+_arguments \
+      '(-c --config-file=)'{-c,--config-file=}'[Configuratio file to use]:Configuratio file to use:_files' \
+      '(-h --hostname=)'{-h,--hostname=}'[Hostname to request]:Hostname:_hosts' \
+      '(-i --interface=)'{-i,--interface=}'[Interface to configure]:Interface:_net_interfaces' \
+      '(-k --kill)'{-k,--kill}'[Kill daemon (and disable all interfaces)]' \
+      '(-l --lease=)'{-l,--lease=}'[Lease time to request (in hours)]' \
+      '(-L --leasesecs=)'{-L,--leasesecs=}'[Lease time to request (in seconds)]' \
+      '(-r --release)'{-r,--release}'[Release interface]:Interface:_net_interfaces' \
+      '(-R --renew)'{-R,--renew}'[Force immediate lease renewal]:Interface:_net_interfaces' \
+      '(-v --verbose)'{-v,--verbose}'[Log verbose debug info]' \
+      '(-s --status)'{-s,--status}'[Display interface status]:Interface:_net_interfaces' \
+      '(-d --no-dns)'{-d,--no-dns}"[Don't update resolv.conf]" \
+      '(-? --help)'{-?,--help}'[Display help message]' \
+      "--no-gateway[Don't set a gateway for this interface]" \
+      "--no-setup[Don't set up anything]" \
+      "--no-resolvconf[Don't set up resolvconf]" \
+      '--no-bootp[Ignore non-DHCP BOOTP responses]' \
+      '--lookup-hostname[Force lookup of hostname]' \
+      '--script=[Script to use]:Script to use:_files' \
+      "--win-client-ident[Set the client identifier to match Window's]" \
+      '--usage[Display brief usage message]' \
+      ':Interface:_net_interfaces'
Index: Completion/Unix/Command/_dhclient
===================================================================
RCS file: Completion/Unix/Command/_dhclient
diff -N Completion/Unix/Command/_dhclient
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ Completion/Unix/Command/_dhclient	25 Jul 2005 23:52:09 -0000
@@ -0,0 +1,7 @@
+#compdef dhclient
+
+_arguments \
+      '-p[Port to transmit to / listen on]' \
+      '-e[Exit if configuration failed after a certain time]' \
+      '-d[Force to run in foreground]' \
+      ':Interface:_net_interfaces'


  reply	other threads:[~2005-07-25 23:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-25 23:29 Julius Plenz
2005-07-25 23:53 ` Clint Adams [this message]
2005-07-26  0:31   ` Clint Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050725235342.GA1204@scowler.net \
    --to=clint@zsh.org \
    --cc=jp@cvmx.de \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).