diff --git a/plugins/catimg/catimg.plugin.zsh b/plugins/catimg/catimg.plugin.zsh index 70ef9a63..cb92f598 100644 --- a/plugins/catimg/catimg.plugin.zsh +++ b/plugins/catimg/catimg.plugin.zsh @@ -7,10 +7,11 @@ # Github: https://github.com/posva/catimg # ################################################################################ -if [[ -x `which convert` ]]; then - function catimg() { + +function catimg() { + if [[ -x `which convert` ]]; then zsh $ZSH/plugins/catimg/catimg.sh $@ - } -else - echo "catimg need convert (ImageMagick) to work)" -fi + else + echo "catimg need convert (ImageMagick) to work)" + fi +}