# Set up your home directory (in Cygwin syntax) if it is
# not already set in the system environment.
if [ -z "$HOME" ]; then
    HOME="/cygdrive/c/work"
fi
export HOME

# Set up your Language (if you do not want English) by
# replacing C (for C locale) with your country code in
# the following line.
export LANG=C

# Set up Hostname/IP address where LyX can find an X-server
export DISPLAY=localhost:0.0

# Set up the name of the X server as shown by "ps -efW".
# No need to export this variable. It will be read directly from
# this file by the wrapper program to ascertain whether the X server
# is already running.
XSERVERNAME=XWin

# ========================================================
# Below this line you should not change anything if you're
# not familiar with configuration of an unix application!
# ========================================================
export PATH="/usr/local/bin:/usr/bin:/usr/X11R6/bin:$PATH"
export USER="`id -un`"
export MAKE_MODE=unix
export OSTYPE=cygwin

unset DOSDRIVE
unset DOSDIR
unset TMPDIR
unset TMP

for i in /etc/profile.d/*.sh ; do
  if [ -f $i ]; then
    . $i
  fi
done

if [ -f /tmp/cdpath ]; then
  cd "`cat /tmp/cdpath`"
  rm -f /tmp/cdpath
else
  cd "$HOME"
fi

test -f ./.bashrc && . ./.bashrc
