Support emacs terminals
This commit is contained in:
parent
a4bacb8bb9
commit
cde90ee0a8
2 changed files with 3 additions and 3 deletions
4
init.zsh
4
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
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#
|
||||
|
||||
# Return if requirements are not found.
|
||||
if [[ "$TERM" == 'dumb' ]]; then
|
||||
if [[ "$TERM" == 'dumb' && "$EMACS" != 't' ]]; then
|
||||
return 1
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue