help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ~/.emacs_bash setting PS1


From: Ehud Karni
Subject: Re: ~/.emacs_bash setting PS1
Date: Tue, 5 Feb 2008 12:27:07 +0200

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="address@hidden;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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]