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

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

Re: How do I remove the extra bash-3.2$ from shell-mode?


From: Robert Thorpe
Subject: Re: How do I remove the extra bash-3.2$ from shell-mode?
Date: Tue, 05 May 2015 01:37:18 +0100

Andrew Pennebaker <andrew.pennebaker@gmail.com> writes:

> Emacs seems to be printing its default PS1 prompt before emacs_bash has
> fully executed. Is there a way to suppress this?

I think the problem is that bash prints out the prompt when it starts.
It's only after it has read the line changing the prompt that it can
actually change the prompt.

The info manual says "The value of the variable `PROMPT_COMMAND' is
examined just before Bash prints each primary prompt."  So, at the start
of the .bashrc it has the wrong value, so one line is wrong.

I think you have to use -p to change the value for the first line.

I think your environment is configured oddly if you're seeing this
prompt at all.

BR,
Robert Thorpe



reply via email to

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