1
0
Fork 0

Support emacs terminals

pull/496/head
Chris Rose 11 years ago
parent a4bacb8bb9
commit cde90ee0a8

@ -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

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

Loading…
Cancel
Save