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
This commit is contained in:
Ade Attwood 2020-10-17 16:48:48 +01:00
parent ca5a928f55
commit 3464a86fb0

View file

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