# Bash knows 3 diferent shells: normal shell, interactive shell, login shell.
# ~/.bashrc is read for interactive shells and ~/.profile is read for login
# shells. We just let ~/.profile also read ~/.bashrc and put everything in
# ~/.bashrc.

test -z "$PROFILEREAD" && . /etc/profile

# Some people like DOS like aliases
if test -f /etc/profile.dos ; then
	. /etc/profile.dos
fi


#alias hilbert='finger @hilbert.suse.de'
#export EDITOR=/usr/bin/pico
#export NNTPSERVER=news.suse.de


# commands common to all logins

if ! [ $TERM ] ; then
    eval `tset -s -Q`
    case $TERM in
      con*|vt100) tset -Q -e ^?
        ;;
    esac
fi
         
#
# nearly no known program needs $TERMCAP - 'Slang'-programs get confused
# with a set $TERMCAP -> unset it.
# unset TERMCAP

# Some programs support several languages for their output.
# If you want them to use german, please uncomment the following line.
#export LANG=de_DE.ISO-8859-1


#
# try to set DISPLAY smart (from Hans) :)
#
if test -z "$DISPLAY" -a "$TERM" = "xterm" -a -x /usr/bin/who ; then
    WHOAMI="`/usr/bin/who am i`"
    _DISPLAY="`expr "$WHOAMI" : '.*(\([^\.][^\.]*\).*)'`:0.0"
    if [ "${_DISPLAY}" != ":0:0.0" -a "${_DISPLAY}" != " :0.0" \
         -a "${_DISPLAY}" != ":0.0" ]; then
        export DISPLAY="${_DISPLAY}";
    fi
    unset WHOAMI _DISPLAY
fi


#test -e ~/.alias && . ~/.alias


export DISPLAY LESS PS1 PS2
umask 077

export PATH=~/jdk1.5.0_01/bin:~/jgrasp/bin/:./:$PATH
#export PATH=~/j2sdk1.4.1/bin:~/jgrasp/bin/:./:$PATH
#export CLASSPATH=./:~/jdk1.4.1/jre/lib/ext/jai_codec.jar:~/jdk1.4.1/jre/lib/ext/jai_core.jar:\
#~/jdk1.4.1/jre/lib/ext/mlibwrapper_jai.jar:../sender/:../recv/:../netSupport/:../common/
export NPX_PLUGIN_PATH=~/j2sdk1.4.1/jre/plugin/i386/ns4
case $TERM in
	xterm* | rxvt*)
		TITLEBAR='\[\033]0;\u@\h # \w\007\]'
	;;

	*)
		TITLEBAR=''
	;;
esac

alias cd..="cd .."
alias ll="ls -l"
alias la="ls -la"
alias mc="mc -c"

alias gnuplot='PAGER=more gnuplot'
alias rm='rm -i'

# to have the time within the prompt
export PS1="\u@\h \t\w\$ "

# to let Konsole set the current directory as window title
export PS1=$PS1"\[\e]0;\H:\w\a"