~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to contrib/zsh/_bzr

  • Committer: Robert Collins
  • Date: 2005-10-16 00:22:17 UTC
  • mto: This revision was merged to the branch mainline in revision 1457.
  • Revision ID: robertc@lifelesslap.robertcollins.net-20051016002217-aa38f9c1eb13ee48
Plugins are now loaded under bzrlib.plugins, not bzrlib.plugin.

Plugins are also made available for other plugins to use by making them 
accessible via import bzrlib.plugins.NAME. You should not import other
plugins during the __init__ of your plugin though, as no ordering is
guaranteed, and the plugins directory is not on the python path.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
# -S means there are no options after a -- and that argument is ignored
6
6
 
7
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.
9
 
 
10
 
 
11
 
_arguments -S "1::bzr command:($(bzr help commands | grep '^   '))"
 
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
# This is not very useful at the moment because it only completes on
 
13
# commands and breaks filename expansion for other arguments.
 
14
 
 
15
 
 
16
_arguments -S "1::bzr command:($(bzr help commands | grep -v '^   '))"
 
17
 
 
18
 
 
19
# Local variables:
 
20
# mode: shell-script
 
21
# End: