# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
	. ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH

TERMTYPE=`tty`
# Only start X if logging in on main terminal
if [ "$TERMTYPE" = "/dev/tty" -o "$TERMTYPE" = "/dev/tty1" ]
then
# Skip start X if X is already running
    ps -C X > /dev/null || exec startx
fi
