tech log on gentoo, linux, and random stuff

Posts Tagged ‘tramp

tramp hangs if remote shell is zsh

leave a comment »

just add the following snippet to your remote .zshrc (or your local ~root/.zshrc if you’re su-tramping locally). Ref inlined :D

# prompts
if [[ $TERM == "dumb" ]]; then	# in emacs
    PS1='%(?..[%?])%!:%~%# '
    # for tramp to not hang, need the following. cf:
    # http://www.emacswiki.org/emacs/TrampMode
    unsetopt zle
    unsetopt prompt_cr
    unsetopt prompt_subst
    unfunction precmd
    unfunction preexec
    # your prompt stuff

Written by zsh

May 10, 2009 at 12:06 pm

Posted in emacs

Tagged with , ,