edit colorize plugin: add `-f terminal` option
The option (`pygmentize -f terminal <...>`) lets pygments use terminal color
scheme. Otherwise, it would use its default colors, which might be
unbalanced with that of terminal (e.g. not harmonious with background color of terminal).
Diff
1diff --git a/plugins/colorize/colorize.plugin.zsh b/plugins/colorize/colorize.plugin.zsh
2index 8eede9a94d50a3b9601527b20e68e0c195a89fba..d52e95c4995040d3914b5d4dd231ffced20edd61 100644
3--- a/plugins/colorize/colorize.plugin.zsh
4+++ b/plugins/colorize/colorize.plugin.zsh
5@@ -9,7 +9,7 @@ colorize_via_pygmentize() {
6 7 # pygmentize stdin if no arguments passed
8 if [ $# -eq 0 ]; then
9- pygmentize -g
10+ pygmentize -f terminal -g
11 return $?
12 fi
1314@@ -20,9 +20,9 @@ colorize_via_pygmentize() {
15 do
16 lexer=$(pygmentize -N "$FNAME")
17 if [[ $lexer != text ]]; then
18- pygmentize -l "$lexer" "$FNAME"
19+ pygmentize -f terminal -l "$lexer" "$FNAME"
20 else
21- pygmentize -g "$FNAME"
22+ pygmentize -f terminal -g "$FNAME"
23 fi
24 done
25 }