# `.profile` is expected to source `.bashrc`. Source here only as fallback. if [ -f ~/.profile ] then . ~/.profile elif [ -f ~/.bashrc ] then . ~/.bashrc fi if [ "$SHLVL" = 1 ] && [ "$(tty)" = /dev/tty1 ] then startx && exit fi