On Thu, 24 Mar 2005 14:53:45 -0500, Jonathan Arnold <[EMAIL PROTECTED]> wrote: > > Well, you aren't going to get a colored prompt from within Emacs, but you > can set it up in your .bashrc so it is usable. I have this code in my > .bashrc: > > if [ "$EMACS" == "t" ] > then > export PS1="*** \@ *** \w ***\n\r" > else > export PS1="*** [EMAIL PROTECTED] *** $YELLOW\w$WHITE ***\n\r$NEUTRAL" > fi > > So while it isn't colored, it gives me the info anyway.
I do the terminal checking the other way, because many terminals can not display colors. Like this: if [ "$TERM" = xterm -o \ "$TERM" = cygwin ] ; then (set PS with colors) else (set PS with NO colors) fi Ehud. -- Ehud Karni Tel: +972-3-7966-561 /"\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D <http://www.keyserver.net/> Better Safe Than Sorry -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/