From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "Loris Bennett" Newsgroups: gmane.emacs.help Subject: [TRAMP] Setting remote prompt Date: Tue, 24 Apr 2018 09:58:54 +0200 Organization: Freie Universitaet Berlin Message-ID: <87vachghmp.fsf@hornfels.zedat.fu-berlin.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1524556701 20757 195.159.176.226 (24 Apr 2018 07:58:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 24 Apr 2018 07:58:21 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Apr 24 09:58:17 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fAsq9-0005K7-3t for geh-help-gnu-emacs@m.gmane.org; Tue, 24 Apr 2018 09:58:17 +0200 Original-Received: from localhost ([::1]:57037 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAssF-0004ss-VG for geh-help-gnu-emacs@m.gmane.org; Tue, 24 Apr 2018 04:00:27 -0400 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 35 Original-X-Trace: news.uni-berlin.de i/60J2vKc/4maKKudeFPQwO6UnwiFgK0FLLMgZoOy07/D5 Cancel-Lock: sha1:hYgjgEjB/7tL1BhJRoRIXi1BkP0= Original-Xref: usenet.stanford.edu gnu.emacs.help:222466 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:116584 Archived-At: Hi, When logged in on a remote machine I have the following prompt: [09:15:09] loris@pi (1000) ~ $ echo $PS1 \[\033]2;\u@\h\a\]\[\e[35m\][\t] \[\e[31m\]\u@\h \[\e[36m\](\!) \[\e[33m\]\w\[\e[34m\]\[\033[0m\]\n$ When I access a file on the remote machine via TRAMP and then do 'M-x shell', I get: ^[]2;loris@pi^G[09:42:03] loris@pi (30) ~ $ echo $PS1 \[\033]2;\u@\h\a\]\[\e[35m\][\t] \[\e[31m\]\u@\h \[\e[36m\](\!) \[\e[33m\]\w\[\e[34m\]\[\033[0m\]\n$ where ^[ and ^G are the non-printable characters and  respectively. I see that here: https://www.gnu.org/software/tramp/#Remote-shell-setup the way to reset the prompt via ~/.emacs_SHELLNAME is described. However, I was wondering if there is just a simple way to prevent TRAMP from adding a default prompt to the front of the existing prompt (if, indeed, that is what is happening). Does anyone one have any advice? Cheers, Loris -- This signature is currently under construction.