zsh-workers
 help / color / mirror / code / Atom feed
From: Simon Ruderich <simon@ruderich.org>
To: zsh-workers@zsh.org
Subject: [PATCH] Completion: _iptables: support ip6tables*
Date: Sun, 22 Jul 2018 10:56:44 +0200	[thread overview]
Message-ID: <5197fd51bc9750b27c85b3f7474aef589ea37741.1532249712.git.simon@ruderich.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 1202 bytes --]

---
 Completion/Linux/Command/_iptables | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Completion/Linux/Command/_iptables b/Completion/Linux/Command/_iptables
index 4178a1a2e..447d7c932 100644
--- a/Completion/Linux/Command/_iptables
+++ b/Completion/Linux/Command/_iptables
@@ -1,16 +1,16 @@
-#compdef iptables iptables-save iptables-restore
+#compdef iptables iptables-save iptables-restore ip6tables ip6tables-save ip6tables-restore
 
 local curcontext="$curcontext" state line expl i ret=1
 local -a cmds rcmds ropts rules states prev args
 
 case $service in
-  iptables-save)
+  iptables-save | ip6tables-save)
     _arguments -s \
       {-c,--counters}'[include values of packet and byte counters in output]' \
       {-t,--table}'[specify table]:table:(filter nat mangle)'
     return
   ;;
-  iptables-restore)
+  iptables-restore | ip6tables-restore)
     _arguments -s \
       {-c,--counters}'[restore the values of all packet and byte counters]' \
       {-n,--noflush}"[don't flush the previous contents of the table]"
-- 
2.18.0

-- 
+ privacy is necessary
+ using gnupg http://gnupg.org
+ public key id: 0x92FEFDB7E44C32F9

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

                 reply	other threads:[~2018-07-22  9:01 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=5197fd51bc9750b27c85b3f7474aef589ea37741.1532249712.git.simon@ruderich.org \
    --to=simon@ruderich.org \
    --cc=zsh-workers@zsh.org \
    /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).