From: Simon Ruderich Date: Sun, 22 Jul 2018 08:48:23 +0000 (+0200) Subject: zsh: "fix" ip6tables completion X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;ds=sidebyside;h=d6e56dc30f2b34ef52a1bc9eeec3a3abb45b617a;hp=b8ccd95d3fd082ba2322a8609c0fbe05c46b1de3;p=config%2Fdotfiles.git zsh: "fix" ip6tables completion --- 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