| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
| List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
| 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 <earnie_boyd AT yahoo DOT com> |
| Subject: | Re: odd bash wrapping due to ansi codes |
| To: | Chris Abbey <cabbey AT bresnanlink DOT net>, cygwin AT sourceware DOT cygnus DOT com |
| MIME-Version: | 1.0 |
--- Chris Abbey <cabbey AT bresnanlink DOT net> 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,
=====
--- <http://earniesystems.safeshopper.com> ---
Earnie Boyd: <mailto:earnie_boyd AT yahoo DOT com>
__Cygwin: POSIX on Windows__
Cygwin Newbies: <http://gw32.freeyellow.com/>
__Minimalist GNU for Windows__
Mingw Home: <http://www.mingw.org/>
__________________________________________________
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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |