453 Commits

Author SHA1 Message Date
ianmacd
b93f310595 - update version and changelog 2002-04-08 14:32:33 +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
6dd3c4ac39 - update version and changelog 2002-04-06 20:26:05 +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
0dfe850db3 - update version and changelog 2002-04-04 14:57:30 +00:00
ianmacd
a7bdba1d92 - update release to 20020404 2002-04-04 14:49:40 +00:00
ianmacd
f85804edc7 - allow all possible combinations of upper and lower case 2002-04-04 14:37:43 +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
6f3f15ca19 - add FAQs for $COMP_CVS_REMOTE and $COMP_CONFIGURE_HINTS 2002-04-03 17:33:20 +00:00
ianmacd
e8bf5a02bc - add text to explain that we now handle the lack of comp{gen,plete} -o
in bash 2.04 in the completion code
2002-04-03 17:23:42 +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
0e889fd5ff - update version and changelog 2002-04-02 08:01:28 +00:00
ianmacd
96e1f9aa50 - update version and changelog 2002-04-02 08:00:47 +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
abb7b52301 - update version and changelog 2002-03-30 18:29:10 +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
ianmacd
3db00b2c24 - _rpm(): replace add_package_list() with installed_packages()
- _rpm(): remove uninstalled_packages()
- _rpm(): only offer rpm options as possible completions if parameter begins
  with a dash
2002-03-29 07:30:47 +00:00
ianmacd
450b0d2a1c - _cd(): checking for CDPATH at the start of the function simplifies things
somewhat
2002-03-29 02:43:09 +00:00
ianmacd
3eafaed8e1 - _insmod(): Mandrake Linux has gzipped modules
- add comments to make Emacs go into shell-script-mode upon editing
2002-03-29 02:35:42 +00:00
ianmacd
ab3645b2c0 - _cd(): don't foist the new relative to absolute path conversion on people
who don't use $CDPATH
2002-03-28 22:41:44 +00:00
ianmacd
a830c5df6d - urpmi completion fixes from Guillaume Rousse <rousse@ccr.jussieu.fr> 2002-03-28 18:36:19 +00:00
ianmacd
84e2b40ab7 - update release to 20020328 2002-03-28 16:22:24 +00:00
ianmacd
e72b671770 - update version and changelog 2002-03-28 16:18:46 +00:00
ianmacd
743f9c05f2 - _longopt(): remove call to _expand(), since this gets called indirectly
anyway when _filedir() is called. This fixes a double escaping of trailing
  backslashes when doing something like 'mv foo\<Tab>', which would cause an
  eval error in _filedir()
2002-03-28 07:41:09 +00:00
ianmacd
33db210cd1 - lilypond completion by Laurent Martelli <laurent@bearteam.org> 2002-03-27 18:35:16 +00:00
ianmacd
110cb991a7 - dpkg completion enhancements from Laurent Martelli <laurent@bearteam.org>
- options which complete on package names or .deb files now can
    complete several of them.
  - --listfiles complete on installed package names
  - --list complete on package names
  - added --force options
2002-03-27 18:33:34 +00:00
ianmacd
d13530b894 - _cd(): when CDPATH=.:$HOME and $PWD = $HOME, every subdir of $HOME will be
returned both as $HOME/foo and foo. bash regards these as separate
  directories, even though when displayed, bash will strip them to the
  basename. Add code to turn any directory that is a subdir of $PWD into an
  absolute path, so that it duplicates $HOME/dir and gets deduped.
2002-03-27 06:32:19 +00:00