]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - shell/setup.sh
screenrc: use dark blue for hardstatus on remote systems
[config/dotfiles.git] / shell / setup.sh
index 5e6866fea72bea1905843c02fea7ff095b0e4f58..4276b42f67eb6393730900305f9092a570e1d05f 100755 (executable)
@@ -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