zymos000 /.bash_profile

# .bash_profile


# echo .bash_profile

###################################
# Get local aliases and functions

if [ -f ~/.bashrc ]; then
	. ~/.bashrc
fi


###################################
# ENV Varaibles

PATH=$PATH:$HOME/bin:/usr/local/azureus

BASH_ENV=$HOME/.bashrc
export PATH BASH_ENV


###################################
# Magical Auto Start-X on login & 
# Auto logout on X-Closing 
#   (requires expect)

case `tty` in 
    /dev/tty[1])
        echo -n "Start X [Yn]? "
        expect \
	    -c 'stty raw' \
	    -c 'set timeout 2' \
	    -c 'expect -nocase n {exit 1} -re . {exit 0}'
        if [ $? = 0 ] ; then
	    startx
            echo -n "Log out [Yn]? "
            expect \
	        -c 'stty raw' \
	        -c 'set timeout 5' \
	        -c 'expect -nocase n {exit 1} -re . {exit 0}'
	    if [ $? = 0 ] ; then
		logout
	    fi
        fi
	echo
    ;;
esac