Execute .xinitrc under bash
xinit uses sh to load .xinitrc, which can load incompatible bashisms in .bashrc if the login shell is /bin/bash. Ideally xinit reads something to load /bin/bash but here's a workaround at the top of .xinitrc:
if [[ x"$BASH" != x"/bin/bash" ]]; then
exec /bin/bash "$HOME/.xinitrc"
fi
Written by Tom, Bom
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#X11
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#