From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Ehud Karni" Newsgroups: gmane.emacs.help Subject: Re: ~/.emacs_bash setting PS1 Date: Tue, 5 Feb 2008 12:27:07 +0200 Organization: Mivtach-Simon Insurance agencies Message-ID: <200802051027.m15AR7Au020889@beta.mvs.co.il> References: Reply-To: ehud@unix.mvs.co.il NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-8-i Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1202208592 24995 80.91.229.12 (5 Feb 2008 10:49:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Feb 2008 10:49:52 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: skpeterson@ucdavis.edu Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 05 11:50:12 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JMLNL-0003BR-7l for geh-help-gnu-emacs@m.gmane.org; Tue, 05 Feb 2008 11:50:03 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JMLMt-0000Op-3n for geh-help-gnu-emacs@m.gmane.org; Tue, 05 Feb 2008 05:49:35 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JMLKj-00077m-Uh for help-gnu-emacs@gnu.org; Tue, 05 Feb 2008 05:47:21 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JMLKe-000733-93 for help-gnu-emacs@gnu.org; Tue, 05 Feb 2008 05:47:20 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JMLKd-00072V-O0 for help-gnu-emacs@gnu.org; Tue, 05 Feb 2008 05:47:15 -0500 Original-Received: from bzq-193-16-147-12.bgp.bezeqint.net ([193.16.147.12] helo=unix.mvs.co.il) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JMLKc-0006vJ-My for help-gnu-emacs@gnu.org; Tue, 05 Feb 2008 05:47:15 -0500 Original-Received: from beta.mvs.co.il (beta [10.253.0.3]) by unix.mvs.co.il (8.13.7/8.13.7) with ESMTP id m15AR7P1013648; Tue, 5 Feb 2008 12:27:07 +0200 Original-Received: from beta.mvs.co.il (localhost [127.0.0.1]) by beta.mvs.co.il (8.14.1/8.14.1) with ESMTP id m15AR7pk020892; Tue, 5 Feb 2008 12:27:07 +0200 Original-Received: (from root@localhost) by beta.mvs.co.il (8.14.1/8.14.1/Submit) id m15AR7Au020889; Tue, 5 Feb 2008 12:27:07 +0200 In-reply-to: (message from Samuel Karl Peterson on Mon, 04 Feb 2008 17:41:09 -0800) X-Mailer: Emacs 21.3.1 rmail (send-msg 1.109) X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-Greylist: delayed 1201 seconds by postgrey-1.27 at monty-python; Tue, 05 Feb 2008 05:47:12 EST 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:51219 Archived-At: On Mon, 04 Feb 2008 17:41:09 -0800, Samuel Karl Peterson wrote: > > I set my PS1 prompt so that ... It looks like this: > > export PS1="[\u@\[\033[1;35m\]\h\[\033[0m\] \W]$ " > > Unfortunately, in Emacs shell-mode, this doesn't show up correctly. I can't help you with ~/.emacs_bash problem, but I can offer a better solution. Add the following line to your .emacs and you'll have color in your Emacs shell mode too. (add-hook 'comint-mode-hook 'ansi-color-for-comint-mode-on) 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 Better Safe Than Sorry