1 2 3 4 5 6 7
. ~/.profile . ~/.bashrc if [ "$SHLVL" = 1 ] && [ "$(tty)" = /dev/tty1 ] then startx && exit fi