From 621239ae6af60eeab19ed272630192ee66bdaaac Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Thu, 4 Jun 2026 19:44:07 +0200 Subject: [PATCH] Fix prompt in remote shell * lisp/net/tramp-sh.el (tramp-sh-handle-make-process): Do not use a hard-coded directory in PS1. (Bug#81177) --- lisp/net/tramp-sh.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el index 8d4dc557676..f939635cfb5 100644 --- a/lisp/net/tramp-sh.el +++ b/lisp/net/tramp-sh.el @@ -3081,7 +3081,7 @@ will be used." ;; We discard hops, if existing, that's why we cannot use ;; `file-remote-p'. (prompt (format "PS1=%s %s" - (tramp-make-tramp-file-name v) + (tramp-make-tramp-file-name v 'noloc) tramp-initial-end-of-output)) ;; We use as environment the difference to toplevel ;; `process-environment'.