[[ -r ~/.bash_profile.local ]] && . ~/.bash_profile.local
[[ -f ~/.bashrc ]] && . ~/.bashrc

if [[ -z $DISPLAY ]] && [[ $(tty) == /dev/tty1 ]]; then
    if command -v startx &>/dev/null && command -v X &>/dev/null; then
        exec startx
    else
        echo "X or startx not found; skipping startx" >>~/.xstart-log
    fi
fi
