fix(catimg): add support to magick binary (#12608)

Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
This commit is contained in:
Gentoo
2024-08-12 12:46:16 +03:00
committed by GitHub
parent 47767bd03c
commit d6f84f3e7d
3 changed files with 17 additions and 10 deletions

View File

@@ -9,9 +9,11 @@
function catimg() {
if [[ -x `which convert` ]]; then
zsh $ZSH/plugins/catimg/catimg.sh $@
if (( $+commands[magick] )); then
CONVERT_CMD="magick" zsh $ZSH/plugins/catimg/catimg.sh $@
elif (( $+commands[convert] )); then
CONVERT_CMD="convert" zsh $ZSH/plugins/catimg/catimg.sh $@
else
echo "catimg need convert (ImageMagick) to work)"
echo "catimg need magick/convert (ImageMagick) to work)"
fi
}