Update colorize.plugin.zsh
correctly detect when pygmentize is not installed do not exit shell if when pygmentize is not installed
This commit is contained in:
Родитель
3fac127152
Коммит
3c41da3172
|
@ -6,9 +6,9 @@
|
||||||
alias colorize='colorize_via_pygmentize'
|
alias colorize='colorize_via_pygmentize'
|
||||||
|
|
||||||
colorize_via_pygmentize() {
|
colorize_via_pygmentize() {
|
||||||
if [ ! -x $(which pygmentize) ]; then
|
if [ ! -x "$(which pygmentize)" ]; then
|
||||||
echo package \'pygmentize\' is not installed!
|
echo "package \'pygmentize\' is not installed!"
|
||||||
exit -1
|
return -1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $# -eq 0 ]; then
|
if [ $# -eq 0 ]; then
|
||||||
|
|
Загрузка…
Ссылка в новой задаче