]>
Commit | Line | Data |
---|---|---|
4e80ccb8 ZU |
1 | # feh bash_completition - made by uzsolt |
2 | # TODO: add more file extensions | |
3 | ||
4 | _feh() | |
5 | { | |
6 | local cur | |
7 | ||
8 | COMPREPLY=() | |
9 | cur=${COMP_WORDS[COMP_CWORD]} | |
10 | ||
11 | case "$cur" in | |
12 | -*) | |
13 | COMPREPLY=( $( compgen -W ' -1 -2 -4 -5 -6 -7 -8 -9\ | |
14 | -a -A --action1 --action2 --action3 --action4 --action5 --action6 --action7 --action8 --action9\ | |
15 | --alpha --auto-zoom -b --bg --bg-center --bg-scale --bg-seamless --bg-tile --blur-button\ | |
16 | --borderless --builtin -c --cache-thumbnails --caption-path --collage --customlist --cycle-once\ | |
17 | -d -D --draw-filename -e -E -f -F --filelist --fontpath --fullindex --full-screen -g -G --geometry\ | |
18 | -h -H --help --hide-pointer -i -I --ignore-aspect --index -j -k --keep-http -l -L --limit-height \ | |
19 | --limit-width --list --loadable -m -M --menu-bg --menu-border --menu-button --menu-ctrl-mask \ | |
20 | --menu-font --menu-style --montage --multiwindow -n -N --next-button --no-blur-ctrl-mask \ | |
21 | --no-jump-on-resort --no-menus --no-rotate-ctrl-mask -o -O --output-dir -p --preload -q -Q \ | |
22 | --quiet -r -R --randomize --rcfile --recursive --reload --reverse --rotate-button -s -S | |
23 | --scale-down --screen-clip --slideshow-delay --sort --stretch -t -T --theme --thumb-height \ | |
24 | --thumbnails --thumb-width --title --title-font -u -U --unloadable -v -V --verbose --version \ | |
25 | -w -W --wget-timestamp -x -X --xinerama -y -z -Z --zoom --zoom-button' -- $cur ) ) | |
26 | ;; | |
27 | *) | |
65040edb | 28 | _filedir '@(jpg|jpeg|png|gif|bmp|ppm|xpm|JPG|JPEG|PNG|GIF|BMP|PPM)' |
4e80ccb8 ZU |
29 | ;; |
30 | esac | |
31 | ||
32 | return 0 | |
33 | ||
34 | } | |
35 | complete -F _feh -o filenames feh |