mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-10 10:19:51 +00:00
Update default color to 'emacs' which both chroma & pygmentize support
This commit is contained in:
@@ -28,13 +28,8 @@ colorize_via_pygmentize() {
|
|||||||
# is set, use that theme instead. Otherwise,
|
# is set, use that theme instead. Otherwise,
|
||||||
# use the default.
|
# use the default.
|
||||||
if [ -z $ZSH_COLORIZE_STYLE ]; then
|
if [ -z $ZSH_COLORIZE_STYLE ]; then
|
||||||
if [[ $ZSH_COLORIZE_TOOL == "pygmentize" ]]; then
|
# Both pygmentize & chroma support 'emacs'
|
||||||
ZSH_COLORIZE_STYLE="default"
|
ZSH_COLORIZE_STYLE="emacs"
|
||||||
else
|
|
||||||
# Choosing 'emacs' to match pygmentize's default as per:
|
|
||||||
# https://github.com/pygments/pygments/blob/master/pygments/styles/default.py#L19
|
|
||||||
ZSH_COLORIZE_STYLE="emacs"
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# pygmentize stdin if no arguments passed
|
# pygmentize stdin if no arguments passed
|
||||||
|
|||||||
Reference in New Issue
Block a user