unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: August Karlstrom <fusionfive@comhem.se>
Subject: Re: Messed up shell prompt
Date: Thu, 16 Feb 2006 03:45:11 GMT	[thread overview]
Message-ID: <bzSIf.45003$d5.201402@newsb.telia.net> (raw)
In-Reply-To: <ym7ezmksulih.fsf@violet.china.nokia.com>

ChunYe Wang wrote:
> August Karlstrom <fusionfive@comhem.se> writes:
>>When I start a shell in Emacs with `M-x shell' I get the prompt
>>
>>    ^[[0;34m[august ~]$ ^[[0m
>>
>>instead of
>>
>>    [august ~]$
>>
>>The value of the PS1 environment variable in ~/.bashrc is
>>
>>    export PS1="\[\033[0;34m\][\u \W]\$ \[\e[0m\]"
>>
>>Any clues?
> 
> (add-hook 'shell-mode-hook (lambda () (ansi-color-for-comint-mode-on)))

Thank you ChunYe.


August

-- 
I am the "ILOVEGNU" signature virus. Just copy me to your
signature.  This email was infected under the terms of the GNU
General Public License.

      reply	other threads:[~2006-02-16  3:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-15 21:48 Messed up shell prompt August Karlstrom
2006-02-16  1:48 ` ChunYe Wang
2006-02-16  3:45   ` August Karlstrom [this message]

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='bzSIf.45003$d5.201402@newsb.telia.net' \
    --to=fusionfive@comhem.se \
    /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).