From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Eric Lilja" Newsgroups: gmane.emacs.help Subject: $EMACS, used to be set to "t", now it's set to the path of the emacs binary? Date: 26 Nov 2006 03:05:58 -0800 Organization: http://groups.google.com Message-ID: <1164539157.973085.297010@j44g2000cwa.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1164541278 7573 80.91.229.2 (26 Nov 2006 11:41:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 26 Nov 2006 11:41:18 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 26 12:41:15 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GoINg-0000I6-0w for geh-help-gnu-emacs@m.gmane.org; Sun, 26 Nov 2006 12:41:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GoINf-0000S2-Ec for geh-help-gnu-emacs@m.gmane.org; Sun, 26 Nov 2006 06:41:07 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!j44g2000cwa.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 16 Original-NNTP-Posting-Host: 85.194.49.108 Original-X-Trace: posting.google.com 1164539162 14847 127.0.0.1 (26 Nov 2006 11:06:02 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sun, 26 Nov 2006 11:06:02 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; sv-SE; rv:1.8.1) Gecko/20061010 Firefox/2.0,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: j44g2000cwa.googlegroups.com; posting-host=85.194.49.108; posting-account=VhnPwg0AAAB7O5OQRS5Hs376X47qoQdE Original-Xref: shelby.stanford.edu gnu.emacs.help:143397 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:39013 Archived-At: Hi, I used to have this section in my .bashrc-file: if [ "$EMACS" == "t" ] then PS1='\n\[\033[32m\]\u@\h \[\033[33m\w\033[0m\]\n$ ' fi in order to get a good looking prompt in shell mode under cygwin (otherwise it would contain ugly control chars). Now I noticed it doesn't work anymore and it seems that $EMACS no longer contains t (for true I guess), but instead it contains the path of the emacs binary used to start this invocation of emacs. When was this changed? I changed my .bashrc to if [ "$EMACS" != "" ] and that seems to work. Is there a better way? / E