add ccat support
Signed-off-by: ivan <qw7692336@gmail.com>
This commit is contained in:
parent
bd6dbd1d9b
commit
2b2cef6515
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user