Support emacs terminals

This commit is contained in:
Chris Rose 2013-11-17 08:21:05 -08:00
parent a4bacb8bb9
commit cde90ee0a8
2 changed files with 3 additions and 3 deletions

View file

@ -91,8 +91,8 @@ if [[ -s "${ZDOTDIR:-$HOME}/.zpreztorc" ]]; then
source "${ZDOTDIR:-$HOME}/.zpreztorc"
fi
# Disable color and theme in dumb terminals.
if [[ "$TERM" == 'dumb' ]]; then
# Disable color and theme in dumb terminals (unless we're in emacs).
if [[ "$TERM" == 'dumb' && "$EMACS" != 't' ]]; then
zstyle ':prezto:*:*' color 'no'
zstyle ':prezto:module:prompt' theme 'off'
fi

View file

@ -7,7 +7,7 @@
#
# Return if requirements are not found.
if [[ "$TERM" == 'dumb' ]]; then
if [[ "$TERM" == 'dumb' && "$EMACS" != 't' ]]; then
return 1
fi