From: Simon Ruderich Date: Wed, 27 May 2009 15:25:22 +0000 (+0200) Subject: setup.sh: Use 256 color mode only on supported systems. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=4a407cc0418cfa1c810681781862d66a6cd150be;p=config%2Fdotfiles.git setup.sh: Use 256 color mode only on supported systems. --- diff --git a/.gitignore b/.gitignore index 8c2ffef..22139a3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +# Ignore generated files. +screenrc # Ignore temporary zsh files. zsh/cache zsh/history diff --git a/screenrc b/screenrc.in similarity index 100% rename from screenrc rename to screenrc.in diff --git a/setup.sh b/setup.sh index 40b7d65..4a7c6b6 100755 --- 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