/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
3
  Copyright (C) 2010  Martin von Gagern
4
5
  This file is part of bzr-bash-completion
6
7
  bzr-bash-completion free software: you can redistribute it and/or
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
12
  bzr-bash-completion is distributed in the hope that it will be
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
20
=====================================
21
bzr bash-completion script and plugin
22
=====================================
0.27.2 by Martin von Gagern
First programmatic generation of completions.
23
24
This script generates a shell function which can be used by bash to
25
automatically complete the currently typed command when the user
26
presses the completion key (usually tab).
27
0.27.16 by Martin von Gagern
Added distutils setup script and plugin meta data.
28
It is intended as a bzr plugin, but can be used to some extend as a
29
standalone python script as well.
30
31
| Copyright (C) 2009, 2010 Martin von Gagern <Martin.vGagern@gmx.net>
32
33
.. contents::
34
35
----------
36
Installing
37
----------
0.27.2 by Martin von Gagern
First programmatic generation of completions.
38
39
You only need to do this if you want to use the script as a bzr
40
plugin.  Otherwise simply grab the bashcomp.py and place it wherever
41
you want.
42
0.27.16 by Martin von Gagern
Added distutils setup script and plugin meta data.
43
Installing from bzr repository
44
------------------------------
45
46
To check out the current code from launchpad, use the following commands::
47
0.27.2 by Martin von Gagern
First programmatic generation of completions.
48
  mkdir -p ~/.bazaar/plugins
49
  cd ~/.bazaar/plugins
50
  bzr co lp:bzr-bash-completion bash_completion
51
0.27.16 by Martin von Gagern
Added distutils setup script and plugin meta data.
52
Installing using easy_install
53
-----------------------------
54
55
The following command should install the latest release of the plugin
56
on your system::
57
58
  easy_install bzr-bash-completion
59
60
-----
61
Using
62
-----
63
64
Using as a plugin
65
-----------------
0.27.2 by Martin von Gagern
First programmatic generation of completions.
66
67
This is the preferred method of generating initializing the
68
completion, as it will ensure proper bzr initialization.
69
0.27.16 by Martin von Gagern
Added distutils setup script and plugin meta data.
70
::
71
0.27.2 by Martin von Gagern
First programmatic generation of completions.
72
  eval "`bzr bash-completion`"
73
74
0.27.16 by Martin von Gagern
Added distutils setup script and plugin meta data.
75
Using as a script
76
-----------------
0.27.2 by Martin von Gagern
First programmatic generation of completions.
77
78
As an alternative, if bzrlib is available to python scripts, the
79
following invocation should yield the same results without requiring
0.27.16 by Martin von Gagern
Added distutils setup script and plugin meta data.
80
you to add a plugin::
0.27.2 by Martin von Gagern
First programmatic generation of completions.
81
82
  eval "`./bashcomp.py`"
83
0.27.16 by Martin von Gagern
Added distutils setup script and plugin meta data.
84
This approach might have some issues, though, and provides less
85
options than the bzr plugin. Therefore if you have the choice, go for
86
the plugin setup.
87
88
--------------
89
Design concept
90
--------------
0.27.3 by Martin von Gagern
Document design concept.
91
92
The plugin (or script) is designed to generate a completion function
93
containing all the required information about the possible
94
completions. This is usually only done once when bash
95
initializes. After that, no more invocations of bzr are required. This
96
makes the function much faster than a possible implementation talking
97
to bzr for each and every completion. On the other hand, this has the
98
effect that updates to bzr or its plugins won't show up in the
99
completions immediately, but only after the completion function has
100
been regenerated.
101
0.27.16 by Martin von Gagern
Added distutils setup script and plugin meta data.
102
-------
103
License
104
-------
0.27.2 by Martin von Gagern
First programmatic generation of completions.
105
106
As this is built upon a bash completion script originally included in
107
the bzr source tree, and as the bzr sources are covered by the GPL 2,
108
this script here is licensed under these same terms.
109
110
If you require a more liberal license, you'll have to contact all
111
those who contributed code to this plugin, be it for bash or for
112
python.
113
0.27.16 by Martin von Gagern
Added distutils setup script and plugin meta data.
114
.. cut long_description here
115
116
-------
117
History
118
-------
0.27.2 by Martin von Gagern
First programmatic generation of completions.
119
120
The plugin was created by Martin von Gagern in 2009, building on a
121
static completion function of very limited scope distributed together
122
with bzr.
123
0.27.16 by Martin von Gagern
Added distutils setup script and plugin meta data.
124
----------
125
References
126
----------
127
128
Plugin homepage
129
  https://launchpad.net/bzr-bash-completion
130
Bazaar homepage
131
  http://bazaar.canonical.com/
132
133
134
135
.. vim: ft=rst
136
137
.. emacs
138
   Local Variables:
139
   mode: rst
140
   End: