From 3464a86fb0609e993f765d7f053b1f0df9d22f9f Mon Sep 17 00:00:00 2001 From: Ade Attwood Date: Sat, 17 Oct 2020 16:48:48 +0100 Subject: [PATCH] fix(emacs): zsh shell when inside emacs When running zsh inside emacs base16 colors messes the colors. By using the `INSIDE_EMACS` this excludes loading the shell color theme when running shells inside emacs --- site-modules/core/files/zshrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/site-modules/core/files/zshrc b/site-modules/core/files/zshrc index 0a8d1d6..534ff93 100644 --- a/site-modules/core/files/zshrc +++ b/site-modules/core/files/zshrc @@ -48,14 +48,14 @@ printf '\033[5 q' # Configure base16 shell for colors if the terminal is not running inside of # emacs # -##if [[ -z INSIDE_EMACS ]]; then +if [[ -z $INSIDE_EMACS ]]; then BASE16_SHELL="$HOME/.config/base16-shell/" [ -n "$PS1" ] && \ [ -s "$BASE16_SHELL/profile_helper.sh" ] && \ eval "$("$BASE16_SHELL/profile_helper.sh")" $HOME/.dotfiles/bin/base16_theme; -##fi +fi # # Setup and export $PATH