]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - shell/setup.sh
zsh/rc: prepend "--" in X alias
[config/dotfiles.git] / shell / setup.sh
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