unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Messed up shell prompt
@ 2006-02-15 21:48 August Karlstrom
  2006-02-16  1:48 ` ChunYe Wang
  0 siblings, 1 reply; 3+ messages in thread
From: August Karlstrom @ 2006-02-15 21:48 UTC (permalink / raw)


Hi everyone,

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?


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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Messed up shell prompt
  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
  0 siblings, 1 reply; 3+ messages in thread
From: ChunYe Wang @ 2006-02-16  1:48 UTC (permalink / raw)


August Karlstrom <fusionfive@comhem.se> writes:

> Hi everyone,
> 
> 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?
> 
> 
> 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.


(add-hook 'shell-mode-hook (lambda () (ansi-color-for-comint-mode-on)))

-- 
Wang ChunYe

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Messed up shell prompt
  2006-02-16  1:48 ` ChunYe Wang
@ 2006-02-16  3:45   ` August Karlstrom
  0 siblings, 0 replies; 3+ messages in thread
From: August Karlstrom @ 2006-02-16  3:45 UTC (permalink / raw)


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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-02-16  3:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).