Merge 2b2cef6515
into 4fec0a46e7
This commit is contained in:
commit
c45fbb4770
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user