unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Ehud Karni" <ehud@unix.mvs.co.il>
To: skpeterson@ucdavis.edu
Cc: help-gnu-emacs@gnu.org
Subject: Re: ~/.emacs_bash setting PS1
Date: Tue, 5 Feb 2008 12:27:07 +0200	[thread overview]
Message-ID: <200802051027.m15AR7Au020889@beta.mvs.co.il> (raw)
In-Reply-To: <o368x20w56y.fsf@pc14.cs.ucdavis.edu> (message from Samuel Karl Peterson on Mon, 04 Feb 2008 17:41:09 -0800)

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 <http://www.keyserver.net/>    Better Safe Than Sorry




  parent reply	other threads:[~2008-02-05 10:27 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-05  1:41 ~/.emacs_bash setting PS1 Samuel Karl Peterson
2008-02-05  9:09 ` Sven Joachim
2008-02-05 15:44   ` Samuel Karl Peterson
2008-02-05  9:25 ` Peter Dyballa
2008-02-05 10:27 ` Ehud Karni [this message]
2008-02-06 15:05 ` Stefan Monnier
2008-02-06 17:32   ` Samuel Karl Peterson
2008-02-08  2:57     ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200802051027.m15AR7Au020889@beta.mvs.co.il \
    --to=ehud@unix.mvs.co.il \
    --cc=help-gnu-emacs@gnu.org \
    --cc=skpeterson@ucdavis.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).