Posts Tagged ‘tramp’
tramp hangs if remote shell is zsh
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
else
# your prompt stuff
fi