X-Git-Url: https://ruderich.org/simon/gitweb/?p=config%2Fdotfiles.git;a=blobdiff_plain;f=shell%2Fsetup.sh;h=7db9722ad9a5b20fb71dc8d188793404595f6640;hp=5e6866fea72bea1905843c02fea7ff095b0e4f58;hb=dab786b7775766e62acd77e57794d8425a5e6e35;hpb=239120feaa158bbb530d41c52ecca47415d85aec diff --git a/shell/setup.sh b/shell/setup.sh index 5e6866f..7db9722 100755 --- a/shell/setup.sh +++ b/shell/setup.sh @@ -184,6 +184,14 @@ if ! test -d "$temperature"; then fi apply_optional_replacement screenrc \ temperature TEMPERATURE "$temperature" +# Settings for local hosts. +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 if installed tmux; then @@ -226,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