From cde90ee0a87117f861709d8188cd3dbc60871d61 Mon Sep 17 00:00:00 2001 From: Chris Rose Date: Sun, 17 Nov 2013 08:21:05 -0800 Subject: [PATCH] Support emacs terminals --- init.zsh | 4 ++-- modules/spectrum/init.zsh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/init.zsh b/init.zsh index fc12297c..f87ce548 100644 --- a/init.zsh +++ b/init.zsh @@ -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 diff --git a/modules/spectrum/init.zsh b/modules/spectrum/init.zsh index 86b5ecc6..5946e4f6 100644 --- a/modules/spectrum/init.zsh +++ b/modules/spectrum/init.zsh @@ -7,7 +7,7 @@ # # Return if requirements are not found. -if [[ "$TERM" == 'dumb' ]]; then +if [[ "$TERM" == 'dumb' && "$EMACS" != 't' ]]; then return 1 fi