tramp-devel
[Top][All Lists]
Advanced

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

prompt has changed with an update


From: Thomas Walker Lynch
Subject: prompt has changed with an update
Date: Sun, 6 Sep 2020 22:19:02 +0200

Hello,  

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)
    (let* (
           (default-directory dir)
           (buffer (get-buffer-create buffer-name))
           )
      (set-buffer buffer)
      (shell buffer)
      ))
  (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 :
  /sudo:root@localhost.localdomain:/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.

Thomas




reply via email to

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