/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

  1. comp_include _filedir _get_cword _ImageMagick
  2. _composite()
  3. {
  4. local cur
  5. COMPREPLY=()
  6. cur=`_get_cword`
  7. _ImageMagick
  8. if [[ "$cur" == -* ]]; then
  9. COMPREPLY=( $( compgen -W '-affine -authenticate \
  10. -blue-primary -colors -colorspace -comment -compose \
  11. -compress -debug -density -depth -displace -display \
  12. -dispose -dissolve -dither -encoding -endian -extract \
  13. -filter -font -geometry -gravity -green-primary -help \
  14. -interlace -label -limit -log -matte -monochrome \
  15. -negate -page -profile -quality -red-primary -rotate \
  16. -resize -sampling-factor -scene -sharpen -size \
  17. -stegano -stereo -thumbnail -tile -transform \
  18. -treedepth -type -units -unsharp -verbose -version \
  19. -virtual-pixel -watermark -white-point -write' \
  20. -- $cur ) )
  21. elif [[ "$cur" == +* ]]; then
  22. COMPREPLY=( $( compgen -W '+compress +debug +dither +endian +label \
  23. +matte +negate +page +write' -- $cur ) )
  24. else
  25. _filedir
  26. fi
  27. } # _composite()