/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to contrib/zsh/_bzr

  • Committer: Robert Collins
  • Date: 2005-10-19 10:11:57 UTC
  • mfrom: (1185.16.78)
  • mto: This revision was merged to the branch mainline in revision 1470.
  • Revision ID: robertc@robertcollins.net-20051019101157-17438d311e746b4f
mergeĀ fromĀ upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#compdef bzr
 
2
 
 
3
# Rudimentary zsh completion support for bzr.
 
4
 
 
5
# -S means there are no options after a -- and that argument is ignored
 
6
 
 
7
# To use this you must arrange for it to be in a directory that is on
 
8
# your $fpath, and also for compinit to be run.  I don't understand
 
9
# how to get zsh to reload this file when it changes, other than by
 
10
# starting a new zsh.
 
11
 
 
12
local _bzr_subcommands expl curcontext="$curcontext"
 
13
 
 
14
_bzr_subcommands=(${(f)"$(_call_program bzr bzr shell-complete)"})
 
15
 
 
16
if (( CURRENT == 2 )); then
 
17
  _describe -t subcommand 'subcommand' _bzr_subcommands
 
18
else
 
19
# this part missing
 
20
fi