mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-10-02 16:03:47 +02:00
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:
1 parent
3fac127152
commit
3c41da3172
1 file changed
+3
-3
@@ -6,9 +6,9 @@
|
||||
alias colorize='colorize_via_pygmentize'
|
||||
|
||||
colorize_via_pygmentize() {
|
||||
if [ ! -x $(which pygmentize) ]; then
|
||||
echo package \'pygmentize\' is not installed!
|
||||
exit -1
|
||||
if [ ! -x "$(which pygmentize)" ]; then
|
||||
echo "package \'pygmentize\' is not installed!"
|
||||
return -1
|
||||
fi
|
||||
|
||||
if [ $# -eq 0 ]; then
|
||||
|
||||
Reference in new issue
Block a user