/bash_completion_lib/complete -o filenames/composite
http://github.com/brinkman83/bashrc · #! · 34 lines · 27 code · 7 blank · 0 comment · 0 complexity · 970d2fba564925e1dfd5f310fd368c92 MD5 · raw file
- comp_include _filedir _get_cword _ImageMagick
- _composite()
- {
- local cur
- COMPREPLY=()
- cur=`_get_cword`
- _ImageMagick
- if [[ "$cur" == -* ]]; then
- COMPREPLY=( $( compgen -W '-affine -authenticate \
- -blue-primary -colors -colorspace -comment -compose \
- -compress -debug -density -depth -displace -display \
- -dispose -dissolve -dither -encoding -endian -extract \
- -filter -font -geometry -gravity -green-primary -help \
- -interlace -label -limit -log -matte -monochrome \
- -negate -page -profile -quality -red-primary -rotate \
- -resize -sampling-factor -scene -sharpen -size \
- -stegano -stereo -thumbnail -tile -transform \
- -treedepth -type -units -unsharp -verbose -version \
- -virtual-pixel -watermark -white-point -write' \
- -- $cur ) )
- elif [[ "$cur" == +* ]]; then
- COMPREPLY=( $( compgen -W '+compress +debug +dither +endian +label \
- +matte +negate +page +write' -- $cur ) )
- else
- _filedir
- fi
- } # _composite()