-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
-
-# ulimit and umask. umask sets a permission mask for all file
-# creations. The mask shown here disallows writing by the "group" and
-# "others" categories of users. ulimit sets the user limits. the core
-# file size is set to zero.
-umask 022
-ulimit -c 0
-
-##############
-
-# Directory variables...
-
-export SCRIPT_SYSTEM=feisty_meow
-
-#if [ -z "$FEISTY_MEOW_DIR" ]; then export FEISTY_MEOW_DIR="$HOME/$SCRIPT_SYSTEM"; fi
-#if [ -z "$FEISTY_MEOW_SCRIPTS" ]; then export FEISTY_MEOW_SCRIPTS="$FEISTY_MEOW_DIR/scripts"; fi
-#if [ -z "$FEISTY_MEOW_SCRIPTS" ]; then export FEISTY_MEOW_SCRIPTS="$FEISTY_MEOW_SCRIPTS"; fi
-
-# include helpful functions.
-source "$FEISTY_MEOW_SCRIPTS/core/functions.sh"
-
-# LIBDIR is an older variable that points at the root of the yeti code.
-export LIBDIR=$FEISTY_MEOW_DIR
-
-if [ -z "$FEISTY_MEOW_GENERATED" ]; 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 FEISTY_MEOW_GENERATED=$HOME/.zz_auto_gen
-fi
-
-##############
-
-# user variables...
-
-# define a default name, if one wasn't already set.
-if [ -z "$NAME" ]; then
- export NAME='Unset Q. Namington, Fixley Your Name III'
-fi
-
-##############
-
-
-##############################################################################
-# other variables...
-##############################################################################
-
-# pull in the custom overrides for feisty_meow scripts.
-for i in $FEISTY_MEOW_SCRIPTS/custom/*.sh; do
- if [ ! -z "$SHELL_DEBUG" ]; then
- echo "loading customization: $(basename $(dirname $i))/$(basename $i)"
+ export IS_DARWIN=$(echo $OSTYPE | grep -i darwin)
+
+ ##############
+
+ # guess the current platform.
+ IS_UNIX=$(uname | grep -i linux)
+ if [ -z "$IS_UNIX" ]; then IS_UNIX=$(uname | grep -i unix); fi
+ if [ -z "$IS_UNIX" ]; then IS_UNIX=$(uname | grep -i darwin); fi
+ IS_DOS=$(uname | grep -i ming)
+ if [ -z "$IS_DOS" ]; then IS_DOS=$(uname | grep -i cygwin); fi
+
+ # now if we're stuck in DOS, try to determine the type of system.
+ if [ ! -z "$IS_DOS" ]; then
+ # IS_MSYS will be non-empty if this is the msys toolset. otherwise
+ # we assume that it's cygwin.
+ IS_MSYS=$(uname | grep -i ming)