From 6c18848a903eb3ee06dccd915859ce64195c257c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 15 Apr 2024 18:24:27 +0200 Subject: Adding upstream version 1:2.11. Signed-off-by: Daniel Baumann --- completions/bk | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 completions/bk (limited to 'completions/bk') diff --git a/completions/bk b/completions/bk new file mode 100644 index 0000000..4e4d140 --- /dev/null +++ b/completions/bk @@ -0,0 +1,18 @@ +# BitKeeper completion -*- shell-script -*- +# adapted from code by Bart Trojanowski + +_bk() +{ + local cur prev words cword + _init_completion || return + + local BKCMDS="$(bk help topics 2>/dev/null | + awk '/^ bk/ { print $2 }' | xargs printf '%s ')" + + COMPREPLY=($(compgen -W "$BKCMDS" -- "$cur")) + _filedir + +} && + complete -F _bk bk + +# ex: filetype=sh -- cgit v1.2.3