From 4e80ccb8a1c54a7b2c172d26351253444de91936 Mon Sep 17 00:00:00 2001 From: Zsolt Udvari Date: Tue, 7 Oct 2008 15:57:07 +0000 Subject: [PATCH] - initial - bash completion file to 'feh' Changed files: feh-bash-completion -> 1.1 --- feh-bash-completion | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 feh-bash-completion diff --git a/feh-bash-completion b/feh-bash-completion new file mode 100644 index 0000000..cc6a90d --- /dev/null +++ b/feh-bash-completion @@ -0,0 +1,35 @@ +# feh bash_completition - made by uzsolt +# TODO: add more file extensions + +_feh() +{ + local cur + + COMPREPLY=() + cur=${COMP_WORDS[COMP_CWORD]} + + case "$cur" in + -*) + COMPREPLY=( $( compgen -W ' -1 -2 -4 -5 -6 -7 -8 -9\ + -a -A --action1 --action2 --action3 --action4 --action5 --action6 --action7 --action8 --action9\ + --alpha --auto-zoom -b --bg --bg-center --bg-scale --bg-seamless --bg-tile --blur-button\ + --borderless --builtin -c --cache-thumbnails --caption-path --collage --customlist --cycle-once\ + -d -D --draw-filename -e -E -f -F --filelist --fontpath --fullindex --full-screen -g -G --geometry\ + -h -H --help --hide-pointer -i -I --ignore-aspect --index -j -k --keep-http -l -L --limit-height \ + --limit-width --list --loadable -m -M --menu-bg --menu-border --menu-button --menu-ctrl-mask \ + --menu-font --menu-style --montage --multiwindow -n -N --next-button --no-blur-ctrl-mask \ + --no-jump-on-resort --no-menus --no-rotate-ctrl-mask -o -O --output-dir -p --preload -q -Q \ + --quiet -r -R --randomize --rcfile --recursive --reload --reverse --rotate-button -s -S + --scale-down --screen-clip --slideshow-delay --sort --stretch -t -T --theme --thumb-height \ + --thumbnails --thumb-width --title --title-font -u -U --unloadable -v -V --verbose --version \ + -w -W --wget-timestamp -x -X --xinerama -y -z -Z --zoom --zoom-button' -- $cur ) ) + ;; + *) + _filedir '@(jpg|jpeg|png|gif|bmp|JPG|JPEG|PNG|GIF|BMP)' + ;; + esac + + return 0 + +} +complete -F _feh -o filenames feh -- 2.43.0