summaryrefslogtreecommitdiffstats
path: root/completions/bk
diff options
context:
space:
mode:
Diffstat (limited to 'completions/bk')
-rw-r--r--completions/bk14
1 files changed, 7 insertions, 7 deletions
diff --git a/completions/bk b/completions/bk
index 4e4d140..e848c04 100644
--- a/completions/bk
+++ b/completions/bk
@@ -1,18 +1,18 @@
# BitKeeper completion -*- shell-script -*-
# adapted from code by Bart Trojanowski <bart@jukie.net>
-_bk()
+_comp_cmd_bk()
{
- local cur prev words cword
- _init_completion || return
+ local cur prev words cword comp_args
+ _comp_initialize -- "$@" || return
local BKCMDS="$(bk help topics 2>/dev/null |
- awk '/^ bk/ { print $2 }' | xargs printf '%s ')"
+ _comp_awk '/^ bk/ { print $2 }' | xargs printf '%s ')"
- COMPREPLY=($(compgen -W "$BKCMDS" -- "$cur"))
- _filedir
+ _comp_compgen -- -W "$BKCMDS"
+ _comp_compgen -a filedir
} &&
- complete -F _bk bk
+ complete -F _comp_cmd_bk bk
# ex: filetype=sh