Recently my prompt has changed on shells raised with Tramp. I use dirtrack, so this messes up Emacs royally.
For example, given this bit of code
(defun shell-make (dir buffer-name)
(buffer (get-buffer-create buffer-name))
(defun shell-root () (interactive) (shell-make "/sudo::/root" "shell-root"))
This is the bashrc file for root, which used to set the prompt:
export PS1='\n$(/usr/local/bin/Z) \u@\h§\w§\n# '
but the prompt that now shows up after m-x shell-root :
I don't know where this latter prompt is coming from.
Have I inadvertently messed something up, or is there some new setting with Tramp somewhere? .. I am a bit of a script kitty when it comes to Emacs and Tramp ... so please excuse me if this is not a well formed question. I don't get, for example, why setting the buffer name and calling a shell ends up calling ssh in the first place.
Thanks for your comments on this.