#!/bin/sh

# file: $isip/util/devel/diagnose_class/limited_bashrc
#
# this is a .bashrc file to emulate an environment on a machine outside of
# isip. This can be used to test software on our machines as though they 
# were downloaded by an outside user. 
# a user should first clear their environment of all ISIP vars and then 

# clear your current environment of all ISIP variables
#
unset `env | awk -F'=' '{print $1}' | grep -i "isip" | tr ' ' ' '`

#SHELL=$shell;

# define the home directories for some important tools:
#  note that these environment variables (containing the base location of the
#  tool) are required by other tools in the isip environment).
#
OPENWINHOME="/usr/openwin";
CLASSPATH=".:/usr/local/netscape:/usr/local/netscape/java_301";
MOZILLA_HOME="/usr/local/netscape";

# export only the variables that really need to be exported
#
export OPENWINHOME CLASSPATH MOZILLA_HOME;

# initialize the path for the isip tools starting with
# the current working directory
#
PATH=".";

# add the system-level directories - give GNU priority
#
PATH="$PATH:$OPENWINHOME/bin";

# java MUST be added before /usr/local/bin or java imports won't work
#
PATH="$PATH:/usr/local/java/bin";

# add /usr/local/bin to catch all the remaining small packages
#
PATH="$PATH:/usr/local/bin";
PATH="$PATH:/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/ucb";

# export the path
#
export PATH;

# set xwindows library path: we finally decide to stick with Sun's openwin
#
LD_LIBRARY_PATH="/usr/openwin/lib";
export LD_LIBRARY_PATH;

#
#
LOGNAME=`/usr/bin/id | cut -f2 -d'(' | cut -f1 -d')'`;
export LOGNAME;

# set core file size to something small (realistic)
#
ulimit -c 0;

# set history length
#
HISTSIZE=1024;

# prevent storing adjacent identical lines in the bash history
#
history_control="ignoredups";

#
# end of file
