]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - setup.sh
zsh/rc: Minor documentation fixes.
[config/dotfiles.git] / setup.sh
index 4a7c6b6cfc5548b3902eef642a43aac2d362c094..94301ce42c777e733b4e537c5f63f7bc78c74bce 100755 (executable)
--- 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