1
=========================================
2
bzr bash-completion script and plugin
3
=========================================
3
Copyright (C) 2010 Martin von Gagern
5
This file is part of bzr-bash-completion
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.
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.
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/>.
20
=====================================
21
bzr bash-completion script and plugin
22
=====================================
5
24
This script generates a shell function which can be used by bash to
6
25
automatically complete the currently typed command when the user
7
26
presses the completion key (usually tab).
9
It can be used either as a bzr plugin or directly.
11
----------------------------------------
12
Installing as a plugin
13
----------------------------------------
28
It is intended as a bzr plugin, but can be used to some extend as a
29
standalone python script as well.
31
| Copyright (C) 2009, 2010 Martin von Gagern <Martin.vGagern@gmx.net>
15
39
You only need to do this if you want to use the script as a bzr
16
40
plugin. Otherwise simply grab the bashcomp.py and place it wherever
43
Installing from bzr repository
44
------------------------------
46
To check out the current code from launchpad, use the following commands::
19
48
mkdir -p ~/.bazaar/plugins
20
49
cd ~/.bazaar/plugins
21
50
bzr co lp:bzr-bash-completion bash_completion
24
----------------------------------------
26
----------------------------------------
52
Installing using easy_install
53
-----------------------------
55
The following command should install the latest release of the plugin
58
easy_install bzr-bash-completion
28
67
This is the preferred method of generating initializing the
29
68
completion, as it will ensure proper bzr initialization.
31
72
eval "`bzr bash-completion`"
34
----------------------------------------
36
----------------------------------------
38
78
As an alternative, if bzrlib is available to python scripts, the
39
79
following invocation should yield the same results without requiring
40
you to add a plugin. Might have some issues, though.
42
82
eval "`./bashcomp.py`"
44
----------------------------------------
46
----------------------------------------
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
48
92
The plugin (or script) is designed to generate a completion function
49
93
containing all the required information about the possible
67
111
those who contributed code to this plugin, be it for bash or for
70
----------------------------------------
72
----------------------------------------
114
.. cut long_description here
74
120
The plugin was created by Martin von Gagern in 2009, building on a
75
121
static completion function of very limited scope distributed together
78
----------------------------------------
80
----------------------------------------
82
https://launchpad.net/bzr-bash-completion
83
http://bazaar.canonical.com/
129
https://launchpad.net/bzr-bash-completion
131
http://bazaar.canonical.com/