[PATCH] Remove pwclient bashcomplete

Stephen Finucane stephen at that.guru
Fri Sep 27 19:36:40 AEST 2019


This was also missed when moving pwclient to a separate repo. Fix it now.

Signed-off-by: Stephen Finucane <stephen at that.guru>
Fixes: 90e85f9d ("Remove pwclient")
---
 patchwork/bin/bash_completion | 29 -----------------------------
 1 file changed, 29 deletions(-)
 delete mode 100644 patchwork/bin/bash_completion

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
-- 
2.21.0



More information about the Patchwork mailing list