diff --git a/data/bash-completion.in b/data/bash-completion.in index b8fe365..cff8fa7 100644 --- a/data/bash-completion.in +++ b/data/bash-completion.in @@ -1,5 +1,6 @@ +#!/bin/bash _zathura() { - _init_completion || return + _init_completion 2>/dev/null || true local EXTS="" for PLUGIN in @PLUGINDIR@/lib*.so; do @@ -22,6 +23,6 @@ _zathura() { esac done - _filedir "${EXTS#|}" + _filedir "${EXTS#|}" 2>/dev/null || COMPREPLY=($(shopt -s extglob; compgen -f -X "!*.@($EXTS)")) } complete -F _zathura zathura