about summary refs log tree commit diff
path: root/Completion/Unix/Command/_bzr
blob: 26e992dd3847b24c71bb4e37e18be7dc8c28057a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#compdef bzr

local _bzr_subcommands expl curcontext="$curcontext"

_bzr_subcommands=(${(f)"$(_call_program bzr bzr shell-complete)"})

if (( CURRENT == 2 )); then
  _describe -t subcommand 'subcommand' _bzr_subcommands
else
# this part should call bzr shell-complete <subcmd> when
# it has been tweaked properly
  _files
fi