diff mbox series

Remove pwclient bashcomplete

Message ID 20190927093640.28945-1-stephen@that.guru
State Accepted
Headers show
Series Remove pwclient bashcomplete | expand

Commit Message

Stephen Finucane Sept. 27, 2019, 9:36 a.m. UTC
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 | 29 -----------------------------
 1 file changed, 29 deletions(-)
 delete mode 100644 patchwork/bin/bash_completion
diff mbox series

Patch

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