diff options
Diffstat (limited to 'completions/bk')
-rw-r--r-- | completions/bk | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/completions/bk b/completions/bk index 73b5bb1c..4e4d140a 100644 --- a/completions/bk +++ b/completions/bk @@ -6,13 +6,13 @@ _bk() local cur prev words cword _init_completion || return - local BKCMDS="$(bk help topics 2>/dev/null | \ + local BKCMDS="$(bk help topics 2>/dev/null | awk '/^ bk/ { print $2 }' | xargs printf '%s ')" - COMPREPLY=( $(compgen -W "$BKCMDS" -- "$cur") ) + COMPREPLY=($(compgen -W "$BKCMDS" -- "$cur")) _filedir } && -complete -F _bk bk + complete -F _bk bk # ex: filetype=sh |