/bash_completion_lib/complete -o filenames/animate

http://github.com/brinkman83/bashrc · #! · 27 lines · 21 code · 6 blank · 0 comment · 0 complexity · 75c866d950c447607080772a11e3df65 MD5 · raw file

  1. comp_include _filedir _get_cword _ImageMagick
  2. _animate()
  3. {
  4. local cur
  5. COMPREPLY=()
  6. cur=`_get_cword`
  7. _ImageMagick
  8. if [[ "$cur" == -* ]]; then
  9. COMPREPLY=( $( compgen -W '-authenticate -backdrop -colormap \
  10. -colors -colorspace -crop -debug -delay -density \
  11. -depth -display -dither -extract -gamma -geometry \
  12. -help -interlace -limit -log -matte -map -monochrome \
  13. -noop -pause -remote -rotate -sampling-factor -scene \
  14. -size -treedepth -trim -verbose -version -visual \
  15. -virtual-pixel -window' -- $cur ) )
  16. elif [[ "$cur" == +* ]]; then
  17. COMPREPLY=( $( compgen -W '+debug +dither +gamma +map +matte' -- $cur ) )
  18. else
  19. _filedir
  20. fi
  21. } # _animate()