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
``plugins`` directory under your Bazaar configuration directory,
38
``~/.bazaar/`` on Unix and
37
``plugins`` directory under your Bazaar configuration directory
38
($BZR_HOME), i.e. ``~/.bazaar/`` on Linux and
39
39
``C:\Documents and Settings\<username>\Application Data\Bazaar\2.0\``
40
on Windows. Within this directory (referred to as $BZR_HOME below),
41
each plugin is placed in its own subdirectory.
40
on Windows. Within this directory, each plugin is placed in its own
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
50
When installing plugins, the directories that you install them in must
50
When installing plugins the directories that you install them in must
51
51
be valid python identifiers. This means that they can only contain
52
52
certain characters, notably they cannot contain hyphens (``-``). Rather
53
than installing ``bzr-gtk`` to ``$BZR_HOME/plugins/bzr-gtk``, install it
54
to ``$BZR_HOME/plugins/gtk``.
53
than installing ``bzr-gtk`` to ``~/.bazaar/plugins/bzr-gtk``, install it
54
to ``~/.bazaar/plugins/gtk``.
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
-----------------------------