/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar
0.27.16 by Martin von Gagern
Added distutils setup script and plugin meta data.
1
.. comment
2
5147.5.4 by Martin von Gagern
Assign copyright to Canonical Ltd.
3
  Copyright (C) 2010 Canonical Ltd
0.27.16 by Martin von Gagern
Added distutils setup script and plugin meta data.
4
7490.130.1 by Jelmer Vernooij
Rename bzr to brz in a few more places.
5
  This file is part of Breezy.
0.27.16 by Martin von Gagern
Added distutils setup script and plugin meta data.
6
7490.130.1 by Jelmer Vernooij
Rename bzr to brz in a few more places.
7
  Breezy is free software: you can redistribute it and/or
0.27.16 by Martin von Gagern
Added distutils setup script and plugin meta data.
8
  modify it under the terms of the GNU General Public License as
9
  published by the Free Software Foundation, either version 2 of the
10
  License, or (at your option) any later version.
11
7490.130.1 by Jelmer Vernooij
Rename bzr to brz in a few more places.
12
  Breezy is distributed in the hope that it will be
0.27.16 by Martin von Gagern
Added distutils setup script and plugin meta data.
13
  useful, but WITHOUT ANY WARRANTY; without even the implied warranty
14
  of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
  General Public License for more details.
16
17
  You should have received a copy of the GNU General Public License
18
  along with this program.  If not, see <http://www.gnu.org/licenses/>.
19
5240.1.2 by Martin von Gagern
Adjust bash_completion README for bundled plugin distribution.
20
==========================
7490.130.1 by Jelmer Vernooij
Rename bzr to brz in a few more places.
21
bash-completion plugin
5240.1.2 by Martin von Gagern
Adjust bash_completion README for bundled plugin distribution.
22
==========================
0.27.2 by Martin von Gagern
First programmatic generation of completions.
23
5240.1.2 by Martin von Gagern
Adjust bash_completion README for bundled plugin distribution.
24
This plugin generates a shell function which can be used by bash to
0.27.2 by Martin von Gagern
First programmatic generation of completions.
25
automatically complete the currently typed command when the user
26
presses the completion key (usually tab).
27
7490.130.1 by Jelmer Vernooij
Rename bzr to brz in a few more places.
28
It is intended as a Breezy plugin, but can be used to some extend as a
0.27.16 by Martin von Gagern
Added distutils setup script and plugin meta data.
29
standalone python script as well.
30
5147.5.4 by Martin von Gagern
Assign copyright to Canonical Ltd.
31
| Copyright (C) 2009, 2010 Canonical Ltd
0.27.16 by Martin von Gagern
Added distutils setup script and plugin meta data.
32
33
.. contents::
34
0.34.1 by Martin von Gagern
Mention the plugin version bundled with bzr.dev
35
-------------------------------
36
Bundled and standalone versions
37
-------------------------------
38
7490.130.1 by Jelmer Vernooij
Rename bzr to brz in a few more places.
39
This plugin has been merged_ into the main source tree of Breezy.
40
Starting with the brz 2.3 series, a common brz installation will
0.34.1 by Martin von Gagern
Mention the plugin version bundled with bzr.dev
41
include this plugin.
42
0.27.16 by Martin von Gagern
Added distutils setup script and plugin meta data.
43
-----
44
Using
45
-----
46
47
Using as a plugin
48
-----------------
0.27.2 by Martin von Gagern
First programmatic generation of completions.
49
0.31.1 by Martin von Gagern
Fix typo in readme
50
This is the preferred method of generating the completion function, as
7490.130.1 by Jelmer Vernooij
Rename bzr to brz in a few more places.
51
it will ensure proper brz initialization.
0.27.2 by Martin von Gagern
First programmatic generation of completions.
52
0.27.16 by Martin von Gagern
Added distutils setup script and plugin meta data.
53
::
54
7490.130.1 by Jelmer Vernooij
Rename bzr to brz in a few more places.
55
  eval "`brz bash-completion`"
0.27.2 by Martin von Gagern
First programmatic generation of completions.
56
0.30.3 by Martin von Gagern
Lazy initialization
57
Lazy initialization
58
-------------------
59
60
Running the above command automatically from your ``~/.bashrc`` file
61
or similar can cause annoying delays in the startup of your shell.
62
To avoid this problem, you can delay the generation of the completion
63
function until you actually need it.
64
7490.130.1 by Jelmer Vernooij
Rename bzr to brz in a few more places.
65
To do so, source the file ``contrib/bash/brz`` shipped with the brz
5240.1.2 by Martin von Gagern
Adjust bash_completion README for bundled plugin distribution.
66
source distribution from your ``~/.bashrc`` file
67
or add it to your ``~/.bash_completion`` if
0.30.3 by Martin von Gagern
Lazy initialization
68
your setup uses such a file. On a system-wide installation, the
69
directory ``/usr/share/bash-completion/`` might contain such bash
70
completion scripts.
71
72
Note that the full completion function is generated only once per
7490.130.1 by Jelmer Vernooij
Rename bzr to brz in a few more places.
73
shell session. If you update your brz installation or change the set
0.30.3 by Martin von Gagern
Lazy initialization
74
of installed plugins, then you might wish to regenerate the completion
75
function manually as described above in order for completion to take
76
these changes into account.
0.27.2 by Martin von Gagern
First programmatic generation of completions.
77
0.27.16 by Martin von Gagern
Added distutils setup script and plugin meta data.
78
--------------
79
Design concept
80
--------------
0.27.3 by Martin von Gagern
Document design concept.
81
5240.1.2 by Martin von Gagern
Adjust bash_completion README for bundled plugin distribution.
82
The plugin is designed to generate a completion function
0.27.3 by Martin von Gagern
Document design concept.
83
containing all the required information about the possible
84
completions. This is usually only done once when bash
7490.130.1 by Jelmer Vernooij
Rename bzr to brz in a few more places.
85
initializes. After that, no more invocations of brz are required. This
0.27.3 by Martin von Gagern
Document design concept.
86
makes the function much faster than a possible implementation talking
7490.130.1 by Jelmer Vernooij
Rename bzr to brz in a few more places.
87
to brz for each and every completion. On the other hand, this has the
88
effect that updates to brz or its plugins won't show up in the
0.27.3 by Martin von Gagern
Document design concept.
89
completions immediately, but only after the completion function has
90
been regenerated.
91
0.27.16 by Martin von Gagern
Added distutils setup script and plugin meta data.
92
-------
93
License
94
-------
0.27.2 by Martin von Gagern
First programmatic generation of completions.
95
96
As this is built upon a bash completion script originally included in
7490.130.1 by Jelmer Vernooij
Rename bzr to brz in a few more places.
97
the brz source tree, and as the brz sources are covered by the GPL 2,
5240.1.2 by Martin von Gagern
Adjust bash_completion README for bundled plugin distribution.
98
this plugin here is licensed under these same terms.
0.27.2 by Martin von Gagern
First programmatic generation of completions.
99
100
If you require a more liberal license, you'll have to contact all
101
those who contributed code to this plugin, be it for bash or for
102
python.
103
0.27.16 by Martin von Gagern
Added distutils setup script and plugin meta data.
104
-------
105
History
106
-------
0.27.2 by Martin von Gagern
First programmatic generation of completions.
107
108
The plugin was created by Martin von Gagern in 2009, building on a
109
static completion function of very limited scope distributed together
7490.130.1 by Jelmer Vernooij
Rename bzr to brz in a few more places.
110
with brz.
0.27.2 by Martin von Gagern
First programmatic generation of completions.
111
7490.130.1 by Jelmer Vernooij
Rename bzr to brz in a few more places.
112
A version of it was merged into the brz source tree in May 2010.
0.34.1 by Martin von Gagern
Mention the plugin version bundled with bzr.dev
113
0.27.16 by Martin von Gagern
Added distutils setup script and plugin meta data.
114
----------
115
References
116
----------
117
6650.1.2 by Jelmer Vernooij
Add missing space.
118
Breezy homepage
6650.1.1 by Jelmer Vernooij
Update homepage URL.
119
  | https://www.breezy-vcs.org/
0.27.16 by Martin von Gagern
Added distutils setup script and plugin meta data.
120
121
122
123
.. vim: ft=rst
124
125
.. emacs
126
   Local Variables:
127
   mode: rst
128
   End: