This is the mail archive of the
cygwin-xfree@sources.redhat.com
mailing list for the Cygwin project.
Re: Xwin an .bashrc
- To: "'cygwin-xfree at sources dot redhat dot com'" <cygwin-xfree at sources dot redhat dot com>
- Subject: Re: Xwin an .bashrc
- From: "Gerrit P. Haase" <gerrit dot haase at t-online dot de>
- Date: Sun, 17 Dec 2000 23:59:31 +0100
- Organization: Esse keine toten Tiere
- Reply-to: gerrit dot haase at t-online dot de
<14 Dec 2000, 11:18 Uhr wars, als Bernard Revet folgendes schrub:>
< Xwin an .bashrc >
> As I indicated in my previous messages I still wonder why .bashrc or
> .bash_profile
> at whatever place in the directories / /bin /usr/X11R6/bin ~ are
Normally, if there is no home dir set, bash looks in / to read .bashrc,
best would be, to set up /home/user correct and to place it there.
/cygwin.bat:
@echo off
I:
chdir \cygwin\bin
set CYGWIN=binmode tty ntea nontsec
bash --login -i
/etc/profile:
PATH="/usr/local/bin:/usr/bin:/bin:."
unset DOSDRIVE
unset DOSDIR
unset TMPDIR
unset TMP
USER="`id -un`"
# Set up USER's home directory
if [ -z "$HOME" ]; then
HOME="/home/$USER"
fi
if [ -d "$HOME/bin" ]; then
PATH="$HOME/bin:$PATH"
fi
if [ ! -d "$HOME" ]; then
mkdir -p "$HOME"
fi
export HOME USER
for i in /etc/profile.d/*.sh ; do
if [ -f $i ]; then
. $i
fi
done
export TERMINFO=/usr/share/terminfo
export CVSROOT=:pserver:anoncvs@anoncvs.cygnus.com:/cvs/src
export HOMEPATH=/home/siebenschlaefer
export TEMP=/tmp
export MAKE_MODE=unix
export PS1='\[\033]0;\w\007
\033[32m\]\u@\h \[\033[33m\w\033[0m\]
$ '
cd "$HOME"
test -f ./.bashrc && . ./.bashrc
--
=^..^=
Gerrit Peter Haase