comparison .shell.d/99.prompt.zsh @ 182:e189dfb33bfa

zsh prompt: unset basically everything if in tramp
author Augie Fackler <durin42@gmail.com>
date Wed, 27 Jan 2010 22:52:18 -0600
parents ebbbf3567a0e
children 02b635053e8f
comparison
equal deleted inserted replaced
181:2d8105525973 182:e189dfb33bfa
57 if [ $FANCYTYPE = "NO" ] ; then 57 if [ $FANCYTYPE = "NO" ] ; then
58 prompt='[%m:%3~] %n%# ' 58 prompt='[%m:%3~] %n%# '
59 RPS1=$'[%W %t]' 59 RPS1=$'[%W %t]'
60 fi 60 fi
61 61
62 if [[ $TERM == "dumb" ]]; then # in emacs
63 # for tramp to not hang, need the following. cf:
64 # http://www.emacswiki.org/emacs/TrampMode
65 unsetopt zle
66 unsetopt prompt_cr
67 unsetopt prompt_subst
68 unfunction precmd
69 unfunction preexec
70 fi
71
72
62 #nonfancy no-frills prompt - disabled (same as the "non-fancy" one above) 73 #nonfancy no-frills prompt - disabled (same as the "non-fancy" one above)
63 #prompt='[%m:%3~] %n%# ' 74 #prompt='[%m:%3~] %n%# '
64 #RPS1=$'[%W %t]' 75 #RPS1=$'[%W %t]'