Probably something like:
(add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on)

The emacs wiki is a good resource for further general emacs queries.

Michael

On Thu, Jun 19, 2008 at 6:18 PM, Mark Kimpel <mwkimpel@gmail.com> wrote:

> export PS1='\[\033[0;35m\]\h\[\033[0;33m\] \w\[\033[00m\]: '
>
> I have the above line in my .bashrc to liven up my gnome-terminal.
> When I open a shell in emacs, instead of the colors I see all the
> command characters. Is there a way for emacs to display the colors or,
> failing that, for me to indicate to emacs that the export PS1 should
> be ignored?
>
> Mark
>
>
> --
> Mark W. Kimpel MD ** Neuroinformatics ** Dept. of Psychiatry
> Indiana University School of Medicine
>
> 15032 Hunter Court, Westfield, IN 46074
>
> (317) 490-5129 Work, & Mobile & VoiceMail
> (317) 663-0513 Home (no voice mail please)
>
> ______________________________________________
> ESS-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
>

	[[alternative HTML version deleted]]


