X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=setup.sh;h=94301ce42c777e733b4e537c5f63f7bc78c74bce;hb=5eb3974ac34161ab19b56f1a51a486ea672c70b2;hp=4a7c6b6cfc5548b3902eef642a43aac2d362c094;hpb=4a407cc0418cfa1c810681781862d66a6cd150be;p=config%2Fdotfiles.git diff --git a/setup.sh b/setup.sh index 4a7c6b6..94301ce 100755 --- a/setup.sh +++ b/setup.sh @@ -7,11 +7,12 @@ # Generate ~/.less with lesskey. lesskey lesskey +chmod 0600 ~/.less # As screen-256color is not widely supported use it only on machines known to # work. generate cat screenrc .in -if [ `hostname` != asp ]; then +if [ `hostname` != asp -a `hostname` != systemofadown ]; then sed 's/Enable 256 color/Disable 256 color/; s/screen-256color/screen/' screenrc > screenrc.tmp mv screenrc.tmp screenrc @@ -29,6 +30,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