From: Stephen Finucane Date: Fri, 27 Sep 2019 09:28:21 +0000 (+0100) Subject: Remove pwclient bashcomplete X-Git-Tag: v2.2.0-rc1~58 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c8b3651efa006052c0b66bd82d2c3e52ac584110;p=thirdparty%2Fpatchwork.git Remove pwclient bashcomplete This was also missed when moving pwclient to a separate repo. Fix it now. Signed-off-by: Stephen Finucane Fixes: 90e85f9d ("Remove pwclient") --- diff --git a/patchwork/bin/bash_completion b/patchwork/bin/bash_completion deleted file mode 100644 index a120a76f..00000000 --- a/patchwork/bin/bash_completion +++ /dev/null @@ -1,29 +0,0 @@ -# Autocompletion for bash. - -_pwclient() { - local cur prev words cword split - - if declare -f _init_completion >/dev/null; then - _init_completion -s || return - else - cur=$(_get_cword) - prev=${COMP_WORDS[COMP_CWORD-1]} - fi - - case "${COMP_CWORD}" in - 0|1) return 0;; - esac - - projects="$(sed -r -e '/\[options\]/d;' \ - -e '/^\[(.+)\]$/!d;' \ - -e 's//\1/;' ~/.pwclientrc 2>/dev/null)" - - case "${prev}" in - -p) COMPREPLY=( $(compgen -W "${projects}" -- "${cur}" ) );; - esac - - return 0 -} -complete -F _pwclient pwclient - -# vim: ft=sh