dot/shell-rc: Don't expand `TERM' or `INSIDE_EMACS' if they're not defined.
[profile] / dot / shell-rc
index 4ab0355..fef62a2 100644 (file)
@@ -74,7 +74,7 @@ __mdw_set_prompt_pieces () {
 }
 
 __mdw_set_prompt () {
-  case "$TERM:$INSIDE_EMACS" in
+  case "${TERM-dumb}:${INSIDE_EMACS+$INSIDE_EMACS}" in
     dumb:)
       case $(id -u) in 0) PS1='# ' ;; *) PS1='$ ' ;; esac
       PS2='> '