]> git.lyx.org Git - lyx.git/blob - development/cygwin/lyxprofile
Customization: correct some color names.
[lyx.git] / development / cygwin / lyxprofile
1 # Set up the home directory if not already set in the system environment.
2 if [ -z "${HOME}" ]; then
3   USER=`id -un`
4   HOME=`getent passwd "${USER}" | cut -d: -f6`
5   if [ -z "${HOME}" -o ! -d "${HOME}" ]; then
6     HOME="/home/${USER}"
7     test -d "${HOME}" || HOME=/tmp
8   fi
9 fi
10 export HOME
11
12 # Set up your Language (if you do not want English) by
13 # replacing C (for C locale) with your country code in
14 # the following line for system-wide settings or in
15 # ~/.lyxprofile for per-user settings.
16 export LANG=C.UTF-8
17
18 # Set up Hostname/IP address where LyX can find an X-server.
19 export DISPLAY=:0.0
20
21 # ========================================================
22 # Below this line you should not change anything if you're
23 # not familiar with configuration of an unix application!
24 # ========================================================
25 export PATH="/usr/local/bin:/usr/bin:/usr/X11R6/bin:$PATH"
26 export USER="`id -un`"
27 export MAKE_MODE=unix
28 export OSTYPE=cygwin
29
30 unset DOSDRIVE
31 unset DOSDIR
32 unset TMPDIR
33 unset TMP
34
35 for f in /etc/profile.d/*.sh ; do
36   if [ -f "${f}" ]; then
37     . "${f}"
38   fi
39 done
40
41 if [ ! -z "${CDPATH}" ]; then
42   cd "${CDPATH}"
43   unset CDPATH
44 else
45   cd "${HOME}"
46 fi
47
48 test -f "${HOME}/.lyxprofile" && . "${HOME}/.lyxprofile"