help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: [TRAMP] Setting remote prompt


From: Yuri Khan
Subject: Re: [TRAMP] Setting remote prompt
Date: Tue, 24 Apr 2018 15:56:39 +0700

On Tue, Apr 24, 2018 at 3:15 PM, Loris Bennett
<loris.bennett@fu-berlin.de> wrote:
> "Loris Bennett" <loris.bennett@fu-berlin.de> writes:
>>   $ echo $PS1
>>   \[\033]2;\u@\h\a\]\[\e[35m\][\t] \[\e[31m\]\u@\h \[\e[36m\](\!) 
>> \[\e[33m\]\w\[\e[34m\]\[\033[0m\]\n$
>
> First I need to work out what the first instance of '\u@\h' is there
> for, as it's been a few years since I set it up.

OSC 2;\u@\h BEL

In xterm and its derivatives, this sets your window title to the
current user@host.



reply via email to

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