284 Commits

Author SHA1 Message Date
ianmacd
3c1fb56a43 - _urpmi_media(): urpmi completion now deals properly with spaces (patch
from Guillaume Rousse <rousse@ccr.jussieu.fr>
2002-04-24 13:40:37 +00:00
ianmacd
bf54af00d9 - check that the files we try to source in $BASH_COMPLETION_DIR are actually
plain old files
2002-04-24 13:28:56 +00:00
ianmacd
b8bc576485 - zipinfo now completes on the same files as unzip 2002-04-23 14:01:39 +00:00
ianmacd
38d9a7f511 - _export(): make 'export FOO=$<Tab>' complete on variable names 2002-04-23 00:51:54 +00:00
ianmacd
f711c4e4d5 - latex et al now also complete on .dtx and .ins files 2002-04-22 15:34:35 +00:00
ianmacd
7a507ded66 - add Debian dselect(8) completion 2002-04-22 06:39:07 +00:00
ianmacd
ce996de56f - updated release to 20020422 2002-04-22 06:25:31 +00:00
ianmacd
433a342a29 - tex, latex et al now also complete on .latex files 2002-04-22 06:17:57 +00:00
ianmacd
635d9d4c4d - use $UNAME instead of $OS, since the latter purportedly has bad interactions
in environments such as Cygwin
2002-04-22 05:59:08 +00:00
ianmacd
f11911d962 - move ri completion into contrib dir, because it's relatively uncommon 2002-04-22 05:48:12 +00:00
ianmacd
3925cc557d - _man(): avoid calling alias, if an alias called man exists
- bind rpmbuild to _rpm() function
2002-04-20 21:55:18 +00:00
ianmacd
d390191ef1 - _filedir(): fix error when completing on a quoted parameter
- _cd(): remove useless call of _expand()
2002-04-20 21:51:33 +00:00
ianmacd
ceb04c70fc - update release to 20020418 2002-04-18 14:05:31 +00:00
ianmacd
046009d2d6 - add 'annotate' to list of cvs commands that perform completion 2002-04-18 13:55:50 +00:00
ianmacd
93de69f1ce - added ri (Ruby documentation) completion 2002-04-18 13:29:56 +00:00
ianmacd
411b1d4edc - _rpm(): rpm -qf worked, but rpm -q -f didn't. Simiarly, rpm -V -f didn't
work; nor did rpm -Vg or rpm -V -g
2002-04-17 06:44:12 +00:00
ianmacd
ad561ac1ca - avoid errors when comp{gen,lete} -g don't work on an unpatched bash 2.05 2002-04-14 22:41:04 +00:00
ianmacd
85c90179c9 - updated release to 20020412 2002-04-13 17:24:28 +00:00
ianmacd
1416f38e22 - _command(): back out change from 1.265, as we can't reliably avoid expansion
of wildcards prior to handing off for subcompletion. Also, back out change
  from 1.242 (release 20020402) that set the command line token pointer to be
  n-1 after expansion of any wildcards. We can't reliably know what the
  position of the current token is after expansion, since someone may do
  something like 'sudo ls fo*<Tab> bar', where 'fo*' expands to multiple
  tokens.
2002-04-13 17:21:42 +00:00
ianmacd
af6559deff - _command(): stop wildcards from expanding prior to handing off command line
for subcompletion
2002-04-11 22:24:08 +00:00
ianmacd
a5aa0efc6c - updated release to 20020408 2002-04-08 14:30:59 +00:00
ianmacd
15f41d5884 - _apt-get improvements from Laurent Martelli <laurent@bearteam.org>
- make _rpm()'s helper functions global. Having them within the _rpm() function
  body doesn't make them global anyway; it just makes them get sourced at
  run-time when _rpm() gets called, so this should be slightly faster
2002-04-07 17:17:13 +00:00
ianmacd
5f58d7380b - update release to 20020406 2002-04-06 20:21:13 +00:00
ianmacd
ea6cbaee07 - various fixes to urpmi function names to make them officially valid 2002-04-06 20:18:59 +00:00
ianmacd
59f7a87048 - _rpm(): rpm would try group query completion instead of either uninstalled or
installed query completion when passed a long option that ended with 'g'.
  Similarly, it would attempt uninstalled package completion instead of
  installed package completion when passed a long option that ended with 'p'.

  verify completion suffered from a similar bug
2002-04-05 17:45:05 +00:00
ianmacd
a7bdba1d92 - update release to 20020404 2002-04-04 14:49:40 +00:00
ianmacd
6a8397a742 - add compressed files (.Z) to the list that gv and ggv will complete on 2002-04-04 14:27:06 +00:00
ianmacd
e7f3e572de - add .m3u to list of extensions that xmms et al can complete on 2002-04-03 22:42:14 +00:00
ianmacd
256fa0e8a6 - clean up numerous areas where grep would complain if passed a $cur with
a space in it
2002-04-03 21:17:10 +00:00
ianmacd
e25e1fae7c - _rpm(): make package group completion a subcase of -q completion
It was very buggy before, completing only when 'rpm -g' was given (which is
  invalid), instead of 'rpm -qg'
2002-04-03 21:10:35 +00:00
ianmacd
47c753c358 - _route(): add 'default' and 'gw' as possible completions
- add lftp(1) and autorpm(1) completion from Kirk Bauer <kirk@kaybee.org>
2002-04-03 19:10:49 +00:00
ianmacd
76fde208dc - attempt to make everything bash 2.04 compatible by putting making the -o
switch to comp{lete,gen} a shell variable
- allow group completion in bash versions > 2.04 (was > 2.05, but that would
  break group completion for anyone who has installed a suitably patched 2.05)
2002-04-03 17:19:30 +00:00
ianmacd
d50f010e6c - add which(1) to list of commands that complete on commands 2002-04-03 16:56:55 +00:00
ianmacd
6392b218d2 - _umount(): make returned completions behave properly (remove -o filenames)
and default to directories if all else fails (add -o dirnames)
2002-04-03 16:56:01 +00:00
ianmacd
d8c6a7e609 - _cd(): back out some code that attempted to add a trailing slash to
completions relative to paths in $CDPATH, since this caused problems
  elsewhere
2002-04-03 05:11:06 +00:00
ianmacd
5c6089327e - set $nospace if bash 2.05b
- only use comp{gen,lete} -g if bash > 2.05
- _cd(): don't append a space to paths relative to $CDPATH when using bash
  2.05b
2002-04-02 23:37:51 +00:00
ianmacd
2b9f621e40 - _cvs(): set $COMP_CVS_REMOTE to get remote repository completion on
'cvs commit'
- _configure(): set $COMP_CONFIGURE_HINTS to get 'SETTING' included on
  --option=SETTING style completions
2002-04-02 17:22:40 +00:00
ianmacd
8da226043b - _configure(): when a completion is of the form --option=SETTING, make the
inclusion of SETTING in the completion be optional (set $hints)
2002-04-02 14:56:59 +00:00
ianmacd
84415c4da6 - update release to 20020402 2002-04-02 08:04:57 +00:00
ianmacd
c1c7ae5797 - _kill(): call _pids rather than duplicate code
- _longopt(): when parsing --help output, pipe stderr through stdout
2002-04-02 06:22:27 +00:00
ianmacd
f91a652220 - add netstat to list of commands that complete on long options
- add renice completion, submitted by Michael G <michaelg@amerion.net>,
  and rewritten helper functions _pids() and _pgids()
2002-04-02 06:17:35 +00:00
ianmacd
a0514e1d73 - _dpkg-reconfigure() fix and enhancements from
Dr.Rafael Sepúlveda <drs@gnulinux.org.mx>
2002-04-02 05:27:50 +00:00
ianmacd
a3e51c1db7 - _command(): when passing off command lines for subcompletion by other
functions, we were passing incorrect information about the current line
  position when the command line contained wildcards that expanded arguments
  to multiple arguments
2002-04-01 16:50:05 +00:00
ianmacd
9eb37822a5 - _cvs(): make 'cvs commit' default to local file completion, since remote
completion is very annoying for those who have to supply a password.
  Set 'remote=yes' within _cvs() to get the old behaviour.
2002-04-01 14:45:45 +00:00
ianmacd
5e5353405d - _scp(): silence errors from remote path completion 2002-03-31 23:12:50 +00:00
ianmacd
2580ccfb4c - update release to 20020331 2002-03-31 06:06:52 +00:00
ianmacd
778d21e930 - fix minor quoting problem in _cd() 2002-03-31 06:04:48 +00:00
ianmacd
cc963371c4 - release updated to 20020330 2002-03-30 18:33:56 +00:00
ianmacd
443d9bb0f8 - _command(): commands like 'sudo chown' return completions of the form
'user:'. This gets escaped by _chown() and passed back as 'user\:'.
  _command() then escapes this further to 'user\\\:', so we need to unescape it
  to have things work correctly.

  Unfortunately, 'sudo rm' might pass back the name of a file that has a
  backslash followed by a colon in the name, e.g. 'foo\:bar'. This is
  escaped by _command() to 'foo\\\:bar', which we should not unescape.

  How to tell the difference between a completion that contains a backslash
  that is escaping the following character, and one that has literal
  backslashes?

  We extract the '-o <type>' information from the compspec and, if we are
  dealing with a spec that does not specify that it passes back filenames or
  dirnames, we unescape any backslash/colon pairings. Of course, this means
  that 'sudo chown' will still do the wrong thing when dealing with a
  directory or filename that contains '\:'. Oh well...
2002-03-30 18:20:51 +00:00
ianmacd
390a748ed4 - fixes to _ant(), _java() and _urpmi() from
Guillaume Rousse <rousse@ccr.jussieu.fr>
2002-03-29 15:33:08 +00:00