# ~/.bash_profile: executed by bash(1) for login shells.

# include .bashrc if it exists
if [ -f ~/.bashrc ]; then
    source ~/.bashrc
fi

# set PATH so it includes user's private bin if it exists
if [ -d ~/bin ] ; then
    PATH="~/bin:${PATH}"
fi

# setting the environment
EDITOR=vim                                     #EDITOR=emacsclient
HTTP_PROXY=
http_proxy=
MAILDIR=$HOME/nsmail
MAIL=$HOME/nsmail/Inbox                    # filenames to check for new mail
CVS_RSH=ssh
CVSROOT=
CLASSPATH=.:/usr/lib/j2re1.3/lib:$HOME/java/saxon.jar:$HOME/java/xt.jar:$HOME/java/xp.jar:$HOME/java/sax.jar:$HOME/java/fop.jar
SP_BCTF=utf-8                                  # nsgmls charset
SGML_HOME=/usr/local/lib/TEItools
PAGER=less
HISTCONTROL=ignoredups                         # ignore the line if it matches previous line
HISTFILESIZE=20000                             # size of the history file cf. also shopt -s histappend
HISTSIZE=1000                                  # size of the run-time history list
HISTIGNORE=ls:ll:la:l:cd:pwd:exit:mc:su:df:clear # do not put these in history file
#MM_CHARSET=CP1251
export EDITOR HTTP_PROXY MAILDIR CVS_RSH CVSROOT CLASSPATH SP_BCTF http_proxy PAGER SYSTRAN_KEY HISTFILESIZE HISTSIZE HISTIGNORE HISTCONTROL

# fix Eterm
#if [ $COLORTERM==Eterm ]; then 
#   bind '"\C-?": delete-char' ### this is what under X will be seen
#  stty erase ^H
#  echo -n "^[[361"
#fi 

umask 022 # create files as u=rwx,g=rx,o=rx