]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
setup.sh: Use 256 color mode only on supported systems.
authorSimon Ruderich <simon@ruderich.org>
Wed, 27 May 2009 15:25:22 +0000 (17:25 +0200)
committerSimon Ruderich <simon@ruderich.org>
Wed, 27 May 2009 15:26:26 +0000 (17:26 +0200)
.gitignore
screenrc.in [moved from screenrc with 100% similarity]
setup.sh

index 8c2ffefa8b1b2a917b0e5cbc0336365ae3c408e0..22139a3a88c8492f5e14511b1c6442553c64a570 100644 (file)
@@ -1,3 +1,5 @@
+# Ignore generated files.
+screenrc
 # Ignore temporary zsh files.
 zsh/cache
 zsh/history
similarity index 100%
rename from screenrc
rename to screenrc.in
index 40b7d6515491bcebd2ffc4f0e49d6721f2123eeb..4a7c6b6cfc5548b3902eef642a43aac2d362c094 100755 (executable)
--- a/setup.sh
+++ b/setup.sh
@@ -8,6 +8,15 @@
 # Generate ~/.less with lesskey.
 lesskey lesskey
 
+# As screen-256color is not widely supported use it only on machines known to
+# work.
+generate cat screenrc .in
+if [ `hostname` != asp ]; then
+    sed 's/Enable 256 color/Disable 256 color/;
+         s/screen-256color/screen/' screenrc > screenrc.tmp
+    mv screenrc.tmp screenrc
+fi
+
 # Link setup for shells.
 link shell ~/.shell
 link bash ~/.bash