X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=setup.sh;h=bdd05424e89a77b119f3ab57634fc532426a17d0;hb=d7c9fe569d84319b588bac6c7bf05d27e8ac2af5;hp=40b7d6515491bcebd2ffc4f0e49d6721f2123eeb;hpb=54cf2e863c8c5bcb0746a5cf9d0ef057ca8695c3;p=config%2Fdotfiles.git diff --git a/setup.sh b/setup.sh index 40b7d65..bdd0542 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 @@ -20,6 +29,8 @@ link zsh/rc ~/.zshrc link zsh/logout ~/.zlogout # Link setup for additional files. -link colordiffrc ~/.colordiffrc +if installed colordiff; then + link colordiffrc ~/.colordiffrc +fi link inputrc ~/.inputrc link screenrc ~/.screenrc