From 062b450dad2d4c450f431592c483cf46238a8f51 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Fri, 11 May 2018 20:15:36 +0100 Subject: [PATCH] dot/shell-rc: Don't expand `TERM' or `INSIDE_EMACS' if they're not defined. --- dot/shell-rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dot/shell-rc b/dot/shell-rc index 4ab0355..fef62a2 100644 --- a/dot/shell-rc +++ b/dot/shell-rc @@ -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='> ' -- 2.11.0