15
15
* adding new commands
16
16
* providing additional network transports
17
17
* customizing log output.
19
19
The sky is the limit for the customization that can be done through plugins.
20
20
In fact, plugins often work as a way for developers to test new features for
21
21
Bazaar prior to inclusion in the official codebase. Plugins are helpful
25
25
Plugins are good for users, good for external developers and good for
29
29
---------------------
31
We keep our list of plugins on the http://wiki.bazaar.canonical.com/BzrPlugins page.
31
We keep our list of plugins on the http://bazaar-vcs.org/BzrPlugins page.
33
How to install a plugin
33
How to install a plugin
34
34
-----------------------
36
36
Installing a plugin is very easy! If not already created, create a
37
37
``plugins`` directory under your Bazaar configuration directory,
38
``~/.bazaar/`` on Unix and
38
``~/.bazaar/`` on Linux and
39
39
``C:\Documents and Settings\<username>\Application Data\Bazaar\2.0\``
40
40
on Windows. Within this directory (referred to as $BZR_HOME below),
41
41
each plugin is placed in its own subdirectory.
43
43
Plugins work particularly well with Bazaar branches. For example, to
44
install the bzrtools plugins for your main user account on GNU/Linux,
45
one can perform the following::
44
install the bzrtools plugins for your main user account on Linux,
45
one can perform the following::
47
47
bzr branch http://panoramicfeedback.com/opensource/bzr/bzrtools
48
48
~/.bazaar/plugins/bzrtools
56
56
Alternative plugin locations
57
57
----------------------------
59
If you have the necessary permissions, plugins can also be installed on a
60
system-wide basis. One can additionally override the personal plugins
61
location by setting the environment variable ``BZR_PLUGIN_PATH`` (see `User
62
Reference <../user-reference/configuration-help.html#bzr-plugin-path>`_
63
for a detailed explanation).
59
If you have the necessary permissions, plugins can also be installed on
60
a system-wide basis. Two locations are currently checked for plugins:
62
1. the system location - bzrlib/plugins
63
2. the personal location - $BZR_HOME/plugins.
65
On a Linux installation, these locations are typically
66
``/usr/lib/python2.4/site-packages/bzrlib/plugins/`` and
67
``$HOME/.bazaar/plugins/``.
68
On a Windows installation, the system location might be
69
``C:\\Program Files\\Bazaar\\plugins``
70
while the personal location might be
71
``C:\Documents and Settings\<username>\Application Data\Bazaar\2.0\plugins``.
73
One can additionally override the personal plugins location
74
by setting the environment variable ``BZR_PLUGIN_PATH``
75
to a directory that contains plugins.
65
77
Listing the installed plugins
66
78
-----------------------------
94
106
================ ================= ==================================
96
108
If you wish to write your own plugins, it is not difficult to do.
97
See `Writing a plugin <writing a plugin.html>`_ in the appendices to get
109
See `Writing a plugin`_ in the appendices to get started.