-fi
-
-# patch home to undo cygwin style of drive letter.
-export HOME=$(echo $HOME | sed -e 's/\/cygdrive\//\//g')
-#echo HOME is now $HOME
-
-if [ "$OS" == "Windows_NT" ]; then
- export HOSTNAME=$(echo $HOSTNAME | tr A-Z a-z)
-fi
-
-##############################################################################
-# Directory variables.
-##############################################################################
-# The yeti library directory holds useful shell scripts, public databases,
-# configuration examples, javascript code, and other stuff.
-export SCRIPT_SYSTEM=feisty_meow
-
-#if [ -z "$YETI_DIR" ]; then export YETI_DIR="$HOME/$SCRIPT_SYSTEM"; fi
-#if [ -z "$YETI_SCRIPTS" ]; then export YETI_SCRIPTS="$YETI_DIR/scripts"; fi
-#if [ -z "$SHELLDIR" ]; then export SHELLDIR="$YETI_SCRIPTS"; fi
-
-# include helpful functions.
-source "$YETI_SCRIPTS/core/functions.sh"
-
-# LIBDIR is an older variable that points at the root of the yeti code.
-export LIBDIR=$YETI_DIR
-
-if [ -z "$GENERADIR" ]; then
- # The generated scripts directory is where automatically generated files live.
- # It is separate from the main body of the shell scripts in order to keep things from
- # exploding.
- export GENERADIR=$HOME/.zz_auto_gen
-fi
-
-##############################################################################
-# other variables...
-##############################################################################
-
-# pull in the custom overrides for feisty_meow scripts.
-for i in $YETI_SCRIPTS/custom/*.sh; do
- echo "Sourcing custom file: $i"
- source $i
-done
-
-# sets the prompts to what we (i.e., i) like...
-# there are four different prompts. the first one, PS1, is the one that users
-# see the most often.
-export PS1='\u@\h $ ';
-### export PS2='> '; export PS3='#? '; export PS4='+ '
-
-# variables for perl.
-export PERLLIB
-if [ "$OS" != "Windows_NT" ]; then
- PERLLIB+="/usr/lib/perl5"
-else
-#echo "the scripts dir is $YETI_SCRIPTS"
- YETI_SCRIPTS="$(echo $YETI_SCRIPTS | sed -e 's/\\/\//g')"
- SHELLDIR="$YETI_SCRIPTS"
-#echo "the scripts dir is now $SHELLDIR"
- export PERLIO=:perlio
- # choose perl's IO over the system's so we can handle file bytes exactly.
-fi
-
-#make this automatic!
-PERLLIB+=":$YETI_SCRIPTS/core:$YETI_SCRIPTS/text:$YETI_SCRIPTS/files:$YETI_SCRIPTS/archival"
-
-# set this so nechung can find its data.
-export NECHUNG=$LIBDIR/database/fortunes.dat
-
-# ensure we use the right kind of rsh for security.
-export CVS_RSH=ssh
-
-# sets the history length and max file size so we can get some long history around here.
-HISTSIZE=1000000
-HISTFILESIZE=2000000
-
-# set the editor for subversion if it hasn't already been set.
-if [ -z "$SVN_EDITOR" ]; then
-#hmmm: not sure what original reason for having these different was...
- if [ "$OS" == "Windows_NT" ]; then
- export SVN_EDITOR=$(which gvim)
- else
- export SVN_EDITOR=$(which vi)