/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
- comp_include _filedir _get_cword _ImageMagick
- _animate()
- {
- local cur
- COMPREPLY=()
- cur=`_get_cword`
- _ImageMagick
- if [[ "$cur" == -* ]]; then
- COMPREPLY=( $( compgen -W '-authenticate -backdrop -colormap \
- -colors -colorspace -crop -debug -delay -density \
- -depth -display -dither -extract -gamma -geometry \
- -help -interlace -limit -log -matte -map -monochrome \
- -noop -pause -remote -rotate -sampling-factor -scene \
- -size -treedepth -trim -verbose -version -visual \
- -virtual-pixel -window' -- $cur ) )
- elif [[ "$cur" == +* ]]; then
- COMPREPLY=( $( compgen -W '+debug +dither +gamma +map +matte' -- $cur ) )
- else
- _filedir
- fi
- } # _animate()