We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fd4c323 + ba0b8b9 commit 4509832Copy full SHA for 4509832
completions/convert
@@ -49,7 +49,13 @@ _comp_cmd_convert__common_options()
49
return
50
;;
51
-format)
52
- _comp_compgen_split -- "$(convert -list format | _comp_awk \
+ # FIXME: We should probably accept the actual command being used
53
+ # here and run that, instead of calling `magick` or `convert`
54
+ # explicitly.
55
+ # `magick` is the new way to call the command in ImageMagick 7
56
+ _comp_compgen_split -- "$({
57
+ magick -list format 2>/dev/null || convert -list format
58
+ } | _comp_awk \
59
'/ [r-][w-][+-] / { sub("[*]$","",$1); print tolower($1) }')"
60
61
0 commit comments