1 # Set up the home directory if not already set in the system environment.
2 if [ -z "${HOME}" ]; then
4 HOME=`grep "^${USER}:" /etc/passwd | cut -d: -f6`
5 if [ -z "${HOME}" -o ! -d "${HOME}" ]; then
6 DOCSFOLDER=`regtool -q get '\HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Personal'`
7 test -n "${DOCSFOLDER}" && HOME=`cygpath -u "${DOCSFOLDER}"` || HOME=/tmp
12 # Set up your Language (if you do not want English) by
13 # replacing C (for C locale) with your country code in
17 # Set up the output charset for your locale.
18 # You may need to experiment with this if you get garbage
19 # in menus ("`a" instead of "à", for example).
20 export OUTPUT_CHARSET=iso-8859-1
22 # Set up Hostname/IP address where LyX can find an X-server.
23 export DISPLAY=localhost:0.0
25 # ========================================================
26 # Below this line you should not change anything if you're
27 # not familiar with configuration of an unix application!
28 # ========================================================
29 export PATH="/usr/local/bin:/usr/bin:/usr/X11R6/bin:$PATH"
30 export USER="`id -un`"
39 for f in /etc/profile.d/*.sh ; do
40 if [ -f "${f}" ]; then
45 if [ ! -z "${CDPATH}" ]; then
52 test -f "${HOME}/.bashrc" && . "${HOME}/.bashrc"