diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2021-09-25 18:55:36 +0200 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2021-09-25 18:55:36 +0200 |
commit | a83b1223ef01cff158c7257cfdc7f3caba288b9c (patch) | |
tree | f150dcecc49d3a2b9c9c43ad89ea8b6755e03a58 /.xinitrc | |
parent | 99997b71145b53c8f3ede3881ce04d80556d44ec (diff) | |
download | dotfiles-a83b1223ef01cff158c7257cfdc7f3caba288b9c.tar.gz |
xinitrc: sh compatability
Diffstat (limited to '.xinitrc')
-rw-r--r-- | .xinitrc | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |