From d6e56dc30f2b34ef52a1bc9eeec3a3abb45b617a Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 22 Jul 2018 10:48:23 +0200 Subject: [PATCH 1/1] zsh: "fix" ip6tables completion --- shell/.gitignore | 1 + shell/setup.sh | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/shell/.gitignore b/shell/.gitignore index c08e6d5..eeb9d31 100644 --- a/shell/.gitignore +++ b/shell/.gitignore @@ -7,6 +7,7 @@ /tmux.conf /tmux-window1.conf /tmux-window2.conf +/zsh/functions/_iptables # Ignore temporary files. /lesshistory /zsh/cache diff --git a/shell/setup.sh b/shell/setup.sh index 4276b42..7db9722 100755 --- a/shell/setup.sh +++ b/shell/setup.sh @@ -234,6 +234,12 @@ if installed dig; then grep -v -E '^#' digrc.in >digrc fi +_iptables='/usr/share/zsh/functions/Completion/Linux/_iptables' +if test -f "$_iptables"; then + sed '/^#compdef/ s/iptables/& ip6tables/' \ + < "$_iptables" \ + > zsh/functions/_iptables +fi # LINK SETUP -- 2.45.2