all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [TRAMP] Setting remote prompt
@ 2018-04-24  7:58 Loris Bennett
  2018-04-24  8:14 ` Michael Albinus
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Loris Bennett @ 2018-04-24  7:58 UTC (permalink / raw)
  To: help-gnu-emacs

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 \a 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.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-04-24 10:35 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-24  7:58 [TRAMP] Setting remote prompt Loris Bennett
2018-04-24  8:14 ` Michael Albinus
2018-04-24  8:15 ` Loris Bennett
2018-04-24  8:56   ` Yuri Khan
     [not found]   ` <mailman.12925.1524560224.27995.help-gnu-emacs@gnu.org>
2018-04-24  9:50     ` Loris Bennett
     [not found] ` <mailman.12922.1524557662.27995.help-gnu-emacs@gnu.org>
2018-04-24  9:29   ` Loris Bennett
2018-04-24 10:35     ` Ben Bacarisse
2018-04-24 10:35       ` Ben Bacarisse

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.