]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
zsh: "fix" ip6tables completion
authorSimon Ruderich <simon@ruderich.org>
Sun, 22 Jul 2018 08:48:23 +0000 (10:48 +0200)
committerSimon Ruderich <simon@ruderich.org>
Sun, 22 Jul 2018 08:48:23 +0000 (10:48 +0200)
shell/.gitignore
shell/setup.sh

index c08e6d565cb356e42eb11bdbbee0b3abec71463a..eeb9d314261fcb4cfe8596b9751459ea42db2178 100644 (file)
@@ -7,6 +7,7 @@
 /tmux.conf
 /tmux-window1.conf
 /tmux-window2.conf
+/zsh/functions/_iptables
 # Ignore temporary files.
 /lesshistory
 /zsh/cache
index 4276b42f67eb6393730900305f9092a570e1d05f..7db9722ad9a5b20fb71dc8d188793404595f6640 100755 (executable)
@@ -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