This is the mail archive of the
cygwin-xfree@sources.redhat.com
mailing list for the Cygwin project.
Re: Xwin an .bashrc
- To: gerrit dot haase at t-online dot de, "'cygwin-xfree at sources dot redhat dot com'" <cygwin-xfree at sources dot redhat dot com>
- Subject: Re: Xwin an .bashrc
- From: "Bernard Revet" <bmrevet at igr dot fr>
- Date: Mon, 18 Dec 2000 12:56:36 +0100
- References: <3A3D5363.9130.1B4422A4@localhost>
Dear Gerrit
What you answered is what effectively should happen and what effectively
does happen under Linux for instance.
Unfortunately it does seem at least under my configuration that /etc/profile
is effectively taken into account.
For instance $HOME is set as with cygwin the session starts in
/home/administrateur but neither .bashrc nor .bash_profile which are in the
HOME directory are read .
Do you effectively have such files in your home directory and can you check if
they are read ?
I would deeply appreciate to know
Yours
Bernard
"Gerrit P. Haase" wrote:
> <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