Xwin an .bashrc

Gerrit P. Haase gerrit.haase@t-online.de
Sun Dec 17 14:57:00 GMT 2000


<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


More information about the Cygwin-xfree mailing list