diff options
author | Michał Masłowski <mtjm@mtjm.eu> | 2012-04-18 10:54:09 +0200 |
---|---|---|
committer | Michał Masłowski <mtjm@mtjm.eu> | 2012-04-18 10:54:09 +0200 |
commit | d4a02502a9a74a21bc0ca0a0fa9813efe0fe70f4 (patch) | |
tree | 3e5dfb37d192bd42d9218934800e1f5aeeb0990e /community/zathura/bash-completion | |
parent | 16d51ac66fa18675d49ef64f4a3c1dbe53b5711a (diff) | |
parent | 637c1cfdcd258a870ad5367cbf47a8a2799039c7 (diff) |
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts:
community-testing/shotwell/PKGBUILD
community/recoll/PKGBUILD
cross/cross-mips64el-unknown-linux-gnu-gcc-core/PKGBUILD
cross/cross-mips64el-unknown-linux-gnu-glibc-headers/PKGBUILD
cross/cross-mips64el-unknown-linux-gnu-glibc-headers/glibc-2.12.2-ignore-origin-of-privileged-program.patch
cross/cross-mips64el-unknown-linux-gnu-glibc-headers/glibc-__i686.patch
cross/mips64el-unknown-linux-gnu-binutils/PKGBUILD
cross/mips64el-unknown-linux-gnu-glibc/PKGBUILD
cross/mips64el-unknown-linux-gnu-glibc/glibc-2.12.2-ignore-origin-of-privileged-program.patch
cross/mips64el-unknown-linux-gnu-glibc/glibc-__i686.patch
staging/nx-common/PKGBUILD
staging/nx/PKGBUILD
testing/devhelp/PKGBUILD
testing/empathy/PKGBUILD
testing/evolution-data-server/PKGBUILD
testing/evolution-ews/PKGBUILD
testing/evolution-exchange/PKGBUILD
testing/evolution/PKGBUILD
testing/folks/PKGBUILD
testing/gcr/PKGBUILD
testing/gnome-control-center/PKGBUILD
testing/gnome-desktop/PKGBUILD
testing/gnome-documents/PKGBUILD
testing/gnome-keyring/PKGBUILD
testing/gnome-panel/PKGBUILD
testing/gnome-session/PKGBUILD
testing/gnome-settings-daemon/PKGBUILD
testing/gnome-terminal/PKGBUILD
testing/gnome-themes-standard/PKGBUILD
testing/gthumb/PKGBUILD
testing/gtkhtml4/PKGBUILD
testing/gtksourceview3/PKGBUILD
testing/gvfs/PKGBUILD
testing/libgnome-keyring/PKGBUILD
testing/librsvg/PKGBUILD
testing/librsvg/librsvg.install
testing/mousetweaks/PKGBUILD
testing/seahorse/PKGBUILD
testing/sushi/PKGBUILD
testing/totem-plparser/PKGBUILD
testing/totem/PKGBUILD
testing/vte3/PKGBUILD
Diffstat (limited to 'community/zathura/bash-completion')
-rw-r--r-- | community/zathura/bash-completion | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/community/zathura/bash-completion b/community/zathura/bash-completion new file mode 100644 index 000000000..41c3825b6 --- /dev/null +++ b/community/zathura/bash-completion @@ -0,0 +1,29 @@ +_zathura() { + _init_completion || return + + EXTENTIONS='' + for PLUGIN in /usr/lib/zathura/*.so; do + case ${PLUGIN##*/} in + pdf.so) + EXTENTIONS="$EXTENTIONS|pdf" + ;; + ps.so) + EXTENTIONS="$EXTENTIONS|ps|eps|epsi|epsf" + ;; + djvu.so) + EXTENTIONS="$EXTENTIONS|djvu|djv" + ;; + epub.so) + EXTENTIONS="$EXTENTIONS|epub" + ;; + cb.so) + EXTENTIONS="$EXTENTIONS|cb7|cbr|cbz|cbt|rar|zip|7z|tar" + ;; + *) + ;; + esac + done + + _filedir "${EXTENTIONS#|}" +} && +complete -F _zathura zathura |