I'm doing some programming on a colleague's machine. He has a version of emacs (23.1.1) I haven't used before. My problem is that when I go to shell-mode, my bash prompt looks like this:
^[]0;jay@socrates:~^G[jay@socrates]$
I have PS1
set to '[\u@\h]\$ '
in my .bashrc
. It's supposed to look like this:
[jay@socrates]$
This is how it looks in a regular shell. I've also checked that PS1 is set to the correct value in the emacs shell, so now I'm out of ideas. How can I get my prompt to look the way I want?
I've seen some suggestions to use term
or eshell
instead of shell
. term
has the same prompt problem as above, and eshell
completely ignores my PS1
so that doesn't really help.