about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSimon Ruderich <simon@ruderich.org>2018-07-25 12:08:59 -0500
committerdana <dana@dana.is>2018-07-25 12:08:59 -0500
commitc5d9c9cbd3c69fb31e55ad373e99c244eeb1ec67 (patch)
treedebf9cc85f3ee870451044c183138126bc9ebb8a
parent627c91357c29e6fbe8b32d1b5f17f02d555d8360 (diff)
downloadzsh-c5d9c9cbd3c69fb31e55ad373e99c244eeb1ec67.tar.gz
zsh-c5d9c9cbd3c69fb31e55ad373e99c244eeb1ec67.tar.xz
zsh-c5d9c9cbd3c69fb31e55ad373e99c244eeb1ec67.zip
43200: Add completion for ip6tables*
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Linux/Command/_iptables6
2 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 4fc87616b..b796c9313 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2018-07-25  dana  <dana@dana.is>
+
+	* Simon Ruderich: 43200: Completion/Linux/Command/_iptables: Add
+	completion for ip6tables*
+
 2018-07-20  dana  <dana@dana.is>
 
 	* 43196: Completion/Unix/Command/_nginx: Add completion for nginx
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]"