From: Mark Wooding Date: Fri, 11 May 2018 19:15:36 +0000 (+0100) Subject: dot/shell-rc: Don't expand `TERM' or `INSIDE_EMACS' if they're not defined. X-Git-Url: https://git.distorted.org.uk/~mdw/profile/commitdiff_plain/062b450dad2d4c450f431592c483cf46238a8f51 dot/shell-rc: Don't expand `TERM' or `INSIDE_EMACS' if they're not defined. --- 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='> '