# HG changeset patch # User Augie Fackler # Date 1264654338 21600 # Node ID e189dfb33bfa604b72acc205cc0b114de7001ae8 # Parent 2d81055259731845beb31343dbb8acd44ab546bc zsh prompt: unset basically everything if in tramp diff --git a/.shell.d/99.prompt.zsh b/.shell.d/99.prompt.zsh --- a/.shell.d/99.prompt.zsh +++ b/.shell.d/99.prompt.zsh @@ -59,6 +59,17 @@ if [ $FANCYTYPE = "NO" ] ; then RPS1=$'[%W %t]' fi +if [[ $TERM == "dumb" ]]; then # in emacs + # 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 +fi + + #nonfancy no-frills prompt - disabled (same as the "non-fancy" one above) #prompt='[%m:%3~] %n%# ' #RPS1=$'[%W %t]'