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

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

Re: help setting TRAMP prompt pattern


From: Michael Albinus
Subject: Re: help setting TRAMP prompt pattern
Date: Thu, 08 Feb 2024 16:01:11 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Luca Ferrari <fluca1978@gmail.com> writes:

> Hi all,

Hi Luca,

> again, I'm fighting against TRAMP and a remote host having zsh. If, on
> the same machine, TRAMP connects to a Bash shell everything works as
> expected, however if connecting to a zsh prompt it hangs.
>
> How can I get the prompt sequence to adjust the pattern?

Read the Tramp manual (info "(tramp) Frequently Asked Questions")

--8<---------------cut here---------------start------------->8---
          When using zsh on remote hosts, disable zsh line editor
          because zsh uses left-hand side and right-hand side prompts in
          parallel.  Add the following line to ‘~/.zshrc’:

               [[ $TERM == "dumb" ]] && unsetopt zle && PS1='$ ' && return
--8<---------------cut here---------------end--------------->8---

> Thanks,
> Luca

Best regards, Michael.



reply via email to

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