# # Contains all necessary exports, shared by various shells (e.g., bash and zsh) # # # Figure out if we're on windows, or linux... # function isWindows() { if [ -z $WINDIR ]; then return 0 else return 1 fi } # # Cygwin setup--do this first, so that everything on Windows is in the same state as it # is on Linux... # isWindows if [ $? -eq 1 ]; then export TERM=cygwin export USER=`logname` fi # # Path setup # export PATH=$PATH:~/bin export MANPATH=$MANPATH:/var/usr/share/man # # User specific environment and startup programs # export HISTIGNORE="[ ]*:&:bg:fg" export HOSTNAME=`hostname` isWindows if [ $? -eq 0 ]; then export TZ='America/Los_Angeles' #-- setting this in Cygwin screws up the time... fi # # Allows for per-machine configurations... # [[ ! -f ~/.$HOSTNAME-exports ]] || source ~/.$HOSTNAME-exports # # Stuff that depends on whether or not we're running cygwin... # isWindows if [ $? -eq 0 ]; then #echo "Configuring for linux..." [[ -n $APACHE_HOME ]] || export APACHE_HOME="/opt/apache" [[ -n $ANT_HOME ]] || export ANT_HOME="/opt/jakarta-ant-1.4.1" [[ -n $JAVA_HOME ]] || export JAVA_HOME=/opt/jdk1.3 [[ -n $TOMCAT_HOME ]] || export TOMCAT_HOME="/opt/jakarta-tomcat-3.2.1" export OSTYPE=linux else #echo "Configuring for windows..." [[ -n $APACHE_HOME ]] || export APACHE_HOME="c:/Apache" [[ -n $ANT_HOME ]] || export ANT_HOME="c:/home/jgindin/bin/jakarta-ant-1.4.1" [[ -n $JAVA_HOME ]] || export JAVA_HOME="c:/jdk1.3" [[ -n $TOMCAT_HOME ]] || export TOMCAT_HOME="c:/jakarta-tomcat-3.2.1" export OSTYPE=cygwin fi # # Development related environment mods # export CVSF_STRIPCR="false" export CVSROOT=:pserver:$USER@odin.performant.com:/usr/local/cvsroot export RUN_IN_WINDOW=Y # # Performant development directories # isWindows if [ $? -eq 0 ]; then export WORK_DIR=~/work else [[ -n $WORK_DIR ]] || export WORK_DIR=e:/work fi # # Assume we're working on the head... # [[ -n $ROOT_DIR ]] || export ROOT_DIR=$WORK_DIR/head/root [[ -n $THIRDPARTY_DIR ]] || export THIRDPARTY_DIR=$ROOT_DIR/../thirdparty export PATH=$PATH:$JAVA_HOME/bin:$ANT_HOME/bin [[ -n $TPCA_BANK_PROPERTIES ]] || export TPCA_BANK_PROPERTIES="$HOME/Bank.properties" # # VSlick setup # isWindows if [ $? -eq 0 ]; then export VSLICKXNOTRAVERSESYMLINK=1 export VSLICKXTERM=gnome-terminal fi