]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - setup.sh
screenrc: Lock screen after 10 minutes of inactivity for root.
[config/dotfiles.git] / setup.sh
index 4318125a535ac89a35f71cf0f0429d0e978e8254..e9727dc91361e8cf75fca5cf4da60cdec9090ee3 100755 (executable)
--- a/setup.sh
+++ b/setup.sh
@@ -19,6 +19,13 @@ if [ $hostname != asp -a $hostname != systemofadown ]; then
          s/screen-256color/screen/' screenrc > screenrc.tmp
     mv screenrc.tmp screenrc
 fi
+# Some options are only necessary when running as root. They are marked as
+# "(ROOT)".
+if [ x`id -u` != x0 ]; then
+    echo screenrc: removing root options
+    grep -v '(ROOT)' screenrc > screenrc.tmp
+    mv screenrc.tmp screenrc
+fi
 # I use some features of screen which are only in Git. Drop them on machines
 # which have older versions. They are marked as "(GIT)".
 if [ $hostname != asp ]; then
@@ -47,12 +54,16 @@ link bash ~/.bash
 link bash/rc ~/.bashrc
 link bash/profile ~/.bash_profile
 link bash/logout ~/.bash_logout
+if installed csh; then
+    link csh/rc ~/.cshrc
+fi
 link zsh ~/.zsh
 link zsh/env ~/.zshenv
 link zsh/rc ~/.zshrc
 link zsh/logout ~/.zlogout
 
 # Link setup for additional files.
+link lessfilter ~/.lessfilter
 if installed colordiff; then
     link colordiffrc ~/.colordiffrc
 fi