# 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 the output charset for your locale.
# You may need to experiment with this if you get garbage
# in menus ("`a" instead of "", for example).
export OUTPUT_CHARSET=iso-8859-1

# Decide if LyX should use Windows- rather than posix-style paths.
# This is useful if you use native apps which do not understand posix.
# Allowable values: yes, no, true, false.
export LYX_WINPATHS=yes

# 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 $HOME/.bashrc && . $HOME/.bashrc
