This commit is contained in:
Ivan Ng 2018-04-17 20:58:05 +00:00 committed by GitHub
commit c45fbb4770
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,6 +7,12 @@
alias ccat='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 \'Pygments\' is not installed!"
return -1