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