On Mon, Nov 29, 2021 at 9:46 AM Michael Albinus <[email protected]>
wrote:

> Reza Housseini <[email protected]> writes:
>
> > Hello
>
> Hi Reza,
>
> > I have a problem with my ssh connection via tramp, I always hang wit
> > "Waiting for prompts from remote shell..." and have to cancel the
> > request. I have tried to connect via the exec command displayed in the
> > tramp-verbose log and everything just works fine. I also added
> >
> > if [["$TERM" == "dumb" ]]; then
> >   PROMPT='$ '
> > fi
> >
> > in my  .zshrc but to no avail. Find attached my tramp-verbose log with
> > the connection details.
> > Hope anyone can clarify what I'm doing wrong.
>
> zsh has even more annoyances for Tramp. The recent Tramp manual recommends
>
> --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---
>
> > Thank you and best regards,
> > Reza
>
> Best regards, Michael.
>

Hi Michael

Thank you for your fast reply, that did the trick!

For my own understanding: is it generally better for tramp to connect via
sh instead of bash or zsh?

Best regards,
Reza

Reply via email to