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" source "${ZDOTDIR:-$HOME}/.zpreztorc"
fi fi
# Disable color and theme in dumb terminals. # Disable color and theme in dumb terminals (unless we're in emacs).
if [[ "$TERM" == 'dumb' ]]; then if [[ "$TERM" == 'dumb' && "$EMACS" != 't' ]]; then
zstyle ':prezto:*:*' color 'no' zstyle ':prezto:*:*' color 'no'
zstyle ':prezto:module:prompt' theme 'off' zstyle ':prezto:module:prompt' theme 'off'
fi fi

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

Loading…
Cancel
Save