@@ -90,12 +90,14 @@ in
9090
9191 promptInit = mkOption {
9292 default = ''
93− # Provide a nice prompt.
94− PROMPT_COLOR="1;31m"
95− let $UID && PROMPT_COLOR="1;32m"
96− PS1="\n\[\033[$PROMPT_COLOR\][\u@\h:\w]\\$\[\033[0m\] "
97− if test "$TERM" = "xterm"; then
98− PS1="\[\033]2;\h:\u:\w\007\]$PS1"
93+ if test "$TERM" != "dumb"; then
94+ # Provide a nice prompt.
95+ PROMPT_COLOR="1;31m"
96+ let $UID && PROMPT_COLOR="1;32m"
97+ PS1="\n\[\033[$PROMPT_COLOR\][\u@\h:\w]\\$\[\033[0m\] "
98+ if test "$TERM" = "xterm"; then
99+ PS1="\[\033]2;\h:\u:\w\007\]$PS1"
100+ fi
99101 fi
100102 '';
101103 description = ''