all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Problem using TRAMP with zsh
@ 2006-09-01 14:59 pluskid
  2006-09-03  7:21 ` Michael Albinus
       [not found] ` <mailman.6185.1157268116.9609.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 3+ messages in thread
From: pluskid @ 2006-09-01 14:59 UTC (permalink / raw)


Hello everyone! I have problem using TRAMP. When my login shell is
bash, I can use it happily. But when I change my login shell to zsh
these days, Emacs hangs when I'm trying to open file with `sudo'
method using TRAMP. I find that it is because the zsh prints extra `#'
or `%' that TRAMP hangs when connecting to it with `ssh' method, just
set this in zsh's init file will fix this:

setopt No_prompt_cr
setopt No_prompt_sp

But I don't know what's wrong with the `sudo' method. Even the `su'
method is fine. It just hangs when "Tramp: Waiting 30s for remote
`/bin/sh' to come up..." I don't know how TRAMP implement sudo method
or how it differs from su method. Can anybody tell me how to fix this?
Thanks!

BTW: I'm using GNU Emacs 23.0.0.4 (i686-pc-linux-gnu, GTK+
Version 2.8.18) of 2006-08-14 on kid and TRAMP 2.1.5 on Debian sid.
And the version of zsh is zsh 4.3.2-dev-1 (i686-pc-linux-gnu)

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

* Re: Problem using TRAMP with zsh
  2006-09-01 14:59 Problem using TRAMP with zsh pluskid
@ 2006-09-03  7:21 ` Michael Albinus
       [not found] ` <mailman.6185.1157268116.9609.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 3+ messages in thread
From: Michael Albinus @ 2006-09-03  7:21 UTC (permalink / raw)
  Cc: help-gnu-emacs

"pluskid" <pluskid.zju@gmail.com> writes:

> Hello everyone! I have problem using TRAMP. When my login shell is
> bash, I can use it happily. But when I change my login shell to zsh
> these days, Emacs hangs when I'm trying to open file with `sudo'
> method using TRAMP.

>From recent Tramp documentation:

          A special problem is the zsh, which uses left-hand side and
          right-hand side prompts in parallel.  Therefore, it is
          necessary to disable the zsh line editor on the remote
          host.  You shall add to `~/.zshrc' the following command:

               [ $TERM = "dumb" ] && unsetopt zle

Best regards, Michael.

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

* Re: Problem using TRAMP with zsh
       [not found] ` <mailman.6185.1157268116.9609.help-gnu-emacs@gnu.org>
@ 2006-09-03 11:35   ` pluskid
  0 siblings, 0 replies; 3+ messages in thread
From: pluskid @ 2006-09-03 11:35 UTC (permalink / raw)


Thank you very much, Michael! I'm new to zsh and I've solved
the problem after disabling zle when $TERM is dumb. I think
I can google for zsh's left-hand side and right-hand side prompt
for more information now.

Thanks again!
Best regards, pluskid.
Michael Albinus wrote:
> "pluskid" <pluskid.zju@gmail.com> writes:
>
> > Hello everyone! I have problem using TRAMP. When my login shell is
> > bash, I can use it happily. But when I change my login shell to zsh
> > these days, Emacs hangs when I'm trying to open file with `sudo'
> > method using TRAMP.
>
> >From recent Tramp documentation:
>
>           A special problem is the zsh, which uses left-hand side and
>           right-hand side prompts in parallel.  Therefore, it is
>           necessary to disable the zsh line editor on the remote
>           host.  You shall add to `~/.zshrc' the following command:
>
>                [ $TERM = "dumb" ] && unsetopt zle
> 
> Best regards, Michael.

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

end of thread, other threads:[~2006-09-03 11:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-01 14:59 Problem using TRAMP with zsh pluskid
2006-09-03  7:21 ` Michael Albinus
     [not found] ` <mailman.6185.1157268116.9609.help-gnu-emacs@gnu.org>
2006-09-03 11:35   ` pluskid

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.