192 Commits

Author SHA1 Message Date
ianmacd
ca39a49656 - _dpkg(): add dpkg-deb options and give dpkg-deb the same expansions as dpkg
(patch submitted by Chris Lawrence <lawrencc@debian.org>
2002-03-11 01:10:17 +00:00
ianmacd
191f225e64 - source files in /etc/bash_completion.d prior to sourcing ~/.bash_completion 2002-03-08 18:50:24 +00:00
ianmacd
fc3c3bd9e0 - _cd(): trim leading './' from relative completions, since bash will see
'./foo' and 'foo' as two distinct completions and return both, even though
  the './' will be cropped when displaying them
2002-03-08 18:46:15 +00:00
ianmacd
dbeb1401db - _java(): fixed reference to wrong local variable 2002-03-08 17:26:41 +00:00
ianmacd
a30b482971 - _dpkg(): -i|--install|--unpack|-A|--record-avail was not completing on
directories
- _dpkg(): -s|--status|-p|--print-avail|-L|--listfiles ignored current
  parameter and thus returned full list of installed packages
2002-03-08 17:21:30 +00:00
ianmacd
b22b0484e0 - some white space clean-up, removal of e-mail addresses and removal of
comment pertaining to an ssh completion bug that was fixed a while ago
2002-03-07 18:04:05 +00:00
ianmacd
314e38b9b7 - add _urpmi.media(), _urpmi(), _urpmi.update(), _urpmi.addmedia() and
_urpmi.removemedia() for Mandrake urpmi completion. These were submitted by
  Guillaume Rousse <rousse@ccr.jussieu.fr>
2002-03-07 18:00:48 +00:00
ianmacd
afeabd71be - add initial option support to _tar() 2002-03-07 17:47:12 +00:00
ianmacd
3888c637b2 - add java completion submitted by Guillaume Rousse <rousse@ccr.jussieu.fr>,
with just a couple of modifications
2002-03-07 17:44:48 +00:00
ianmacd
a72c526952 - add jar(1) completion from Guillaume Rousse <rousse@ccr.jussieu.fr> 2002-03-07 17:35:32 +00:00
ianmacd
9ffa1fe16a - ant completion replaced by function provided by
Guillaume Rousse <rousse@ccr.jussieu.fr>, with a few changes to trap
  compgen errors and other minor issues
2002-03-07 17:32:03 +00:00
ianmacd
dc5e5a1cfc - _rpm(): handle query of uninstalled packages when options are not
concatenated, i.e. rpm -qp worked, but rpm -q -p did not. Further
   complicated by fact that other options could be interspersed,
   e.g. rpm -q -l -p -i, and that partial concatenation could be given,
   e.g. rpm -q -ipl
2002-03-07 16:16:43 +00:00
ianmacd
41b04176d9 - updated release to 20020306 2002-03-06 19:24:06 +00:00
ianmacd
f27c448ef2 - _man(): Debian does not support man --path, so try setting path using
manpath and, if that fails, use man --path instead
2002-03-06 17:38:37 +00:00
ianmacd
3d1d2d9e18 - _export() and _configure() default to default bash completion if all else
fails
- before sourcing ~/.bash_completion, check that the current file being
  sourced is not this very file. Otherwise, we cause an infinite loop.
2002-03-05 23:23:30 +00:00
ianmacd
c90a77f7eb - release updated to 20020304 2002-03-04 15:33:30 +00:00
ianmacd
6e44048776 - _rpm(): perform path completion for --whatprovides if parameter contains a / 2002-03-04 03:46:42 +00:00
ianmacd
5eaea3f95e - make _man() work on Darwin systems (MacOS X) 2002-03-02 00:56:21 +00:00
ianmacd
5566bb72e0 - moved some functions around, so that all helper functions, completion
functions for built-ins, and completion functions for externals are grouped
  together
2002-03-02 00:13:23 +00:00
ianmacd
55f9da95c5 - _longopt(): make vague attempt at path completion after the '=' in
--long-opt= options
- _filedir(): don't bother to set $cur, since every function that calls
  it will have already set it
2002-03-01 22:41:42 +00:00
ianmacd
81decef383 - _cvs(): cvs import now traverses entire CVSROOT. Also cleaned up code a
little more
2002-03-01 18:29:34 +00:00
ianmacd
8b8547237a - _cvs(): assign to $changed() and $newremoved() as arrays, not scalars 2002-03-01 07:55:36 +00:00
ianmacd
0363d0203c - a few more changes to _cvs() from Kyle Wheeler <memoryhole@mac.com>
(e.g. cvs checkout now descends through the CVSROOT) and some code clean-up
  to _cvs() by me
2002-03-01 06:58:23 +00:00
ianmacd
a2d62dae9b - expand _function() with typeset/declare completion 2002-03-01 01:02:39 +00:00
ianmacd
b90ac0362b - large clean-up of sed and awk usage throughout code, where interpolating a
shell variable that contained a / would cause the sed or awk command to fail,
  since it expected the / as its own delimiter. Use | instead.
2002-03-01 00:42:13 +00:00
ianmacd
e450032829 - _cd() was not correctly completing on subdirs of $CDPATH (why is this
function so damn hard to get right? :-) )
- _configure() suffered a sed error when completing on options of the type
  --option=PATH
2002-02-28 22:37:10 +00:00
ianmacd
272633960b - Kyle Wheeler <memoryhole@mac.com> submitted a large _cvs() patch with many
improvements. I rewrote this and fixed a few bugs found on the way.
2002-02-28 22:23:14 +00:00
ianmacd
b85f049d30 - minor typo corrected in _longopt()
- stop eval error in _expand() when parameter ends with a \
2002-02-28 05:39:10 +00:00
ianmacd
bd5f78e80e - _man(): quote $manpath to avoid premature expansion and remove local
variable $i
2002-02-27 21:36:10 +00:00
ianmacd
e2f04f8fd1 - updated release to 20020227 2002-02-27 15:59:49 +00:00
ianmacd
6e7b485c5c - more code clean-up. Replace many instances of compgen -[df] by calls to
_filedir and removed a few more potential compgen error areas.
2002-02-27 15:48:20 +00:00
ianmacd
c00299c0a3 - _command(): call _filedir() when subcompletion commands return no matches 2002-02-27 15:28:26 +00:00
ianmacd
00c983ff96 - _root_command() wasn't passing name of command that had called it to
_command()
2002-02-27 10:01:21 +00:00
ianmacd
17dcab80ec - make psql completion perform default bash completion if all else fails 2002-02-27 09:34:17 +00:00
ianmacd
59f672285f - simplify _root_command() and actually install it for use by sudo 2002-02-27 08:55:30 +00:00
ianmacd
e5b34db64e - add dpkg completion, based largely on code submitted by Laurent Martelli
<laurent@bearteam.org>
2002-02-27 06:47:09 +00:00
ianmacd
c6602afe92 - _make(): add long option completion
- cleaned up _configure(), _longopt() and _gcc()
2002-02-27 01:18:08 +00:00
ianmacd
0f4d4d3dd4 multiple potential causes of compgen errors removed 2002-02-27 01:02:43 +00:00
ianmacd
128690832c - minor bug fixes to _make()
- multiple potential compgen error clean-ups
2002-02-27 00:41:56 +00:00
ianmacd
2d0f63f8b3 - _rpm(): removed some superfluous returns
- _apt-cache(): renamed _apt_cache and caught some potential compgen errors
- _apt-get(): renamed _apt_get and caught some potential compgen errors
2002-02-27 00:24:04 +00:00
ianmacd
f0af45516a - _rpm(): major clean-up, including removal of dashify()
- _rpm(): fix bug that caused --prefix, --relocate and --root to not complete
  on directories
2002-02-27 00:14:52 +00:00
ianmacd
d29b19a324 - clean up superluous returns in _ipsec() 2002-02-26 23:35:39 +00:00
ianmacd
844c7bb6b2 - _find(): code clean-up and removal of potential compgen errors 2002-02-26 23:29:54 +00:00
ianmacd
54ef11bb25 prevent compgen errors in _chown(), _chgrp and _man()
fix [ ] test in _chown() and _chgrp() that should have been [[ ]] test
2002-02-26 23:13:04 +00:00
ianmacd
9d299d53cd code clean-up
prevent compgen error in _man()
2002-02-26 22:59:47 +00:00
ianmacd
d2cf29b671 sudo now calls _root_command(), which is a wrapper around _command(), but also
sets the PATH to include {,/usr{,/local}}/sbin
2002-02-26 22:21:39 +00:00
ianmacd
cc9bfa1465 add cardctl completion 2002-02-26 20:48:32 +00:00
ianmacd
92f3a2e8fb updated release to 20020225 2002-02-25 05:50:23 +00:00
ianmacd
3a0e91f6a5 _rpm(): fixed minor bug in --re{build,compile}/--clean/--rms{ource,pec} that
caused compgen error when passed parameter with hyphens
2002-02-24 19:52:22 +00:00
ianmacd
64c42032e2 _psql(): try to get list of valid users from Postgres before resorting to
system user list
2002-02-24 05:43:48 +00:00