PageRenderTime 82ms CodeModel.GetById 40ms app.highlight 1ms RepoModel.GetById 40ms app.codeStats 0ms

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