summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2011-12-28 08:38:48 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2011-12-28 08:39:45 +0100
commitf1b8308baf0d3a4f35ead3a723a6ceb827627d77 (patch)
tree90f3deaecfd398b177b25eecd56cbc6b3e92b6ea
parent3710942ec1d857fe2b51321bb68257fbbf8d6459 (diff)
downloaddotfiles-f1b8308baf0d3a4f35ead3a723a6ceb827627d77.tar.gz
dotfiles-f1b8308baf0d3a4f35ead3a723a6ceb827627d77.tar.bz2
dotfiles-f1b8308baf0d3a4f35ead3a723a6ceb827627d77.zip
xinitrc: shorten xinitrc lookup abit
-rw-r--r--.xinitrc5
1 files changed, 1 insertions, 4 deletions
diff --git a/.xinitrc b/.xinitrc
index 97ffbcd..b1c6cc4 100644
--- a/.xinitrc
+++ b/.xinitrc
@@ -15,11 +15,8 @@ XDG_SESSION_COOKIE=
# run all system xinitrc shell scripts which will update $command
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for i in /etc/X11/xinit/xinitrc.d/* ; do
- if [ -x "$i" ]; then
- . "$i"
- fi
+ [[ -x "$i" ]] && . "$i"
done
- unset i
fi
# restore XDG_SESSION_COOKIE
XDG_SESSION_COOKIE="$realxdgcookie"