Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <20000918124010.21700.qmail@web117.yahoomail.com> Date: Mon, 18 Sep 2000 05:40:10 -0700 (PDT) From: Earnie Boyd Subject: Re: odd bash wrapping due to ansi codes To: Chris Abbey , cygwin AT sourceware DOT cygnus DOT com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii --- Chris Abbey wrote: > > I've set mine up as: > > if [ "$TERM" == "cygwin" ]; then > PS1='' #cygwin version with ansi codes > else > PS1='\w $' > fi > export PS1 > > and as long as I'm in that file, I just saw the other > patch I put in my copy.... > > if [ "$SHELL" != "/bin/bash" ]; then > test -f ./.profile && . ./.profile > test -f ./.bashrc && . ./.bashrc > fi > > this has the advantage for those who run bash of not > sourcing these files twice, as bash does so itself. > No, it doesn't always. If --login then ./.bashrc is not performed but ./.profile is, and without --login ./.bashrc is performed but not ./.profile. Also, without --login the /etc/profile isn't performed and shouldn't be a concern. Cheers, ===== --- --- Earnie Boyd: __Cygwin: POSIX on Windows__ Cygwin Newbies: __Minimalist GNU for Windows__ Mingw Home: __________________________________________________ Do You Yahoo!? Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.com/ -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com