aboutsummaryrefslogtreecommitdiff
path: root/.xinitrc
diff options
context:
space:
mode:
Diffstat (limited to '.xinitrc')
-rw-r--r--.xinitrc6
1 files changed, 4 insertions, 2 deletions
diff --git a/.xinitrc b/.xinitrc
index d9f49ab..935cb33 100644
--- a/.xinitrc
+++ b/.xinitrc
@@ -12,9 +12,11 @@ if [ -d /etc/X11/xinit/xinitrc.d ]; then
fi
if [ -f ~/.files ]; then
- source ~/.files
+ . "$HOME/.files"
for f in $DOTFILEBASE/xinitrc.d/*; do
- [ -x "$f" ] && . "$f"
+ # Some scripts require bash, but .xinitrc is sourced from sh.
+ # If a script is marked executable, it is executed instead of sourced.
+ [ -x "$f" ] && exec "$f" || . "$f"
done
unset f
fi