]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - shell/setup.sh
zsh/rc: prepend "--" in X alias
[config/dotfiles.git] / shell / setup.sh
index 394c46310d8c0001e53cb686e9e9f0bcd3f30353..7db9722ad9a5b20fb71dc8d188793404595f6640 100755 (executable)
@@ -185,7 +185,10 @@ fi
 apply_optional_replacement screenrc \
     temperature TEMPERATURE "$temperature"
 # Settings for local hosts.
-if test -z "${SSH_CONNECTION:+set}"; then
+if test -n "${SSH_CONNECTION:+set}"; then
+    echo 'screenrc: using dark blue for remote screens'
+    sed_i 's/sorendition = Bw/sorendition = bw/' screenrc
+else
     echo 'screenrc: removing remote options'
     grep_i -v '(REMOTE)' screenrc
 fi
@@ -231,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