c194b51560039707dc375412e70b6faa0d3ceaa5

Author
Aaron N. Brock <aaron@functionize.com>
Committer
Aaron N. Brock <aaron@functionize.com>
Date

Message

Update default color to 'emacs' which both chroma & pygmentize support

Diff

 1diff --git a/plugins/colorize/colorize.plugin.zsh b/plugins/colorize/colorize.plugin.zsh
 2index 2335113d5e0568f1099201266bb801c872859655..8edf81d54b69b1898df0098406ac5431bfeb2dc9 100644
 3--- a/plugins/colorize/colorize.plugin.zsh
 4+++ b/plugins/colorize/colorize.plugin.zsh
 5@@ -28,13 +28,8 @@ colorize_via_pygmentize() {
 6     # is set, use that theme instead. Otherwise,
 7     # use the default.
 8     if [ -z $ZSH_COLORIZE_STYLE ]; then
 9-        if [[ $ZSH_COLORIZE_TOOL == "pygmentize" ]]; then
10-            ZSH_COLORIZE_STYLE="default"
11-        else
12-            # Choosing 'emacs' to match pygmentize's default as per:
13-            # https://github.com/pygments/pygments/blob/master/pygments/styles/default.py#L19
14-            ZSH_COLORIZE_STYLE="emacs"
15-        fi
16+        # Both pygmentize & chroma support 'emacs'
17+        ZSH_COLORIZE_STYLE="emacs"
18     fi
19 
20     # pygmentize stdin if no arguments passed