diff --git a/plugins/colorize/colorize.plugin.zsh b/plugins/colorize/colorize.plugin.zsh index 11b58e69..6ecdf59b 100644 --- a/plugins/colorize/colorize.plugin.zsh +++ b/plugins/colorize/colorize.plugin.zsh @@ -6,6 +6,12 @@ alias colorize='colorize_via_pygmentize' colorize_via_pygmentize() { + # https://github.com/jingweno/ccat + if [ -x "$(which ccat)" ]; then + ccat $@ + return 0 + fi + if [ ! -x "$(which pygmentize)" ]; then echo "package \'pygmentize\' is not installed!" return -1