From: Simon Ruderich Date: Sat, 7 May 2011 13:43:28 +0000 (+0200) Subject: setup.sh: Don't use Git features of screen as root. X-Git-Url: https://ruderich.org/simon/gitweb/?p=config%2Fdotfiles.git;a=commitdiff_plain;h=f0217d1f48f76af5f5be9e51f81403c5ff103204 setup.sh: Don't use Git features of screen as root. --- diff --git a/setup.sh b/setup.sh index e9727dc..755e292 100755 --- a/setup.sh +++ b/setup.sh @@ -28,7 +28,7 @@ if [ x`id -u` != x0 ]; then 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 +if [ $hostname != asp -o x`id -u` = x0 ]; then echo screenrc: removing Git features grep -v '(GIT)' screenrc > screenrc.tmp mv screenrc.tmp screenrc