summaryrefslogtreecommitdiff
path: root/dot/bash_profile
blob: 44b50e0082f8c8d6472dfa55176bd0007b2f3e11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# `.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