]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
Remove pwclient bashcomplete
authorStephen Finucane <stephen@that.guru>
Fri, 27 Sep 2019 09:28:21 +0000 (10:28 +0100)
committerStephen Finucane <stephen@that.guru>
Fri, 27 Sep 2019 09:36:08 +0000 (10:36 +0100)
This was also missed when moving pwclient to a separate repo. Fix it now.

Signed-off-by: Stephen Finucane <stephen@that.guru>
Fixes: 90e85f9d ("Remove pwclient")
patchwork/bin/bash_completion [deleted file]

diff --git a/patchwork/bin/bash_completion b/patchwork/bin/bash_completion
deleted file mode 100644 (file)
index a120a76..0000000
+++ /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