3004 Commits

Author SHA1 Message Date
ianmacd
08b34a63ba in _apt-cache(), return package list for --show, --showpkg, --depends
and --dotty
2002-02-11 05:06:19 +00:00
ianmacd
b045216981 _scp() now suffixes a ':' on hostnames 2002-02-11 02:14:08 +00:00
ianmacd
d51b4604ff add bash export completion
change $cword reference to $cur in alias completion
remove local from list of built-ins that complete on variables, since local
  can't be used interactively
2002-02-11 01:49:26 +00:00
ianmacd
ea10afb706 alias and function completion based on code submitted by
ulf.bartelt@t-online.de <Ulf Bartelt>
2002-02-10 23:11:03 +00:00
ianmacd
2dddaf2b23 ncftp bookmark completion from Markus Dobel <mdobel@kawo2.rwth-aachen.de> 2002-02-10 20:45:46 +00:00
ianmacd
251e972c2f add qiv and display to list of programs that complete on image files
xfig completes on .fig files
2002-02-10 20:32:39 +00:00
ianmacd
83d2b7073a spec file for RPM 2002-02-09 09:02:34 +00:00
ianmacd
0a5f613673 a very simple README file 2002-02-09 08:41:35 +00:00
ianmacd
2a29d6370c update release to 20020209 2002-02-09 07:30:49 +00:00
ianmacd
43734d4e42 fixed minor quoting bug in _filedir() and _filedir_xspec() that caused paths
with embedded spaces to still not be correctly completed in some cases
2002-02-08 17:16:44 +00:00
ianmacd
61a29b1fcc _man(): some systems (e.g. Mandrake) have bzipped man pages
_man(): remove code duplication
more file types for ee and xv
2002-02-08 16:49:05 +00:00
ianmacd
c07198e692 updated release to 20020206 2002-02-06 18:02:53 +00:00
ianmacd
ba9b87d9f2 make -name, -lname, -iname & -ilname complete on files in _find() and
change default completion from -o default to -o filenames
2002-02-06 17:41:06 +00:00
ianmacd
7861de5841 make xdvi also complete on .Z, .gz and .bz2 files 2002-02-06 16:05:12 +00:00
ianmacd
ebce6ca0d7 change instances of -X '!*.+(foo|bar)' to -X '!*.@(foo|bar) in the various
one-liners, so that e.g. baz would complete on .foo or .bar, but not .foobar
2002-02-06 15:54:09 +00:00
ianmacd
100ef4f101 added a bunch of one-liners from patch by Matthias Klose <doko@cs.tu-berlin.de> 2002-02-06 04:02:46 +00:00
ianmacd
8592dda38b add --pkgid, --hdrid, --fileid & --tid query options to _rpm() for rpm 4.0.4 2002-02-06 01:51:20 +00:00
ianmacd
5fa59bcce2 unzip also completes on .pk3 (Quake map) files
xmms, gqmpeg & freeamp also complete on .pls files
2002-02-05 15:55:30 +00:00
ianmacd
afa4d5e633 in _rpm(), consult /var/log/rpmpkgs for package list only if it is newer
than /var/lib/rpm/Packages
2002-02-04 18:11:42 +00:00
ianmacd
45f633b993 make scp work with files with embedded spaces (grr...) 2002-02-04 18:07:33 +00:00
ianmacd
b414d1c5b7 updated release to 20020204 2002-02-04 02:15:42 +00:00
ianmacd
4c175e5917 screen completion added - _screen()
beginnings of openssl completion added - _openssl()
2002-02-04 02:12:10 +00:00
ianmacd
3d0e1f3778 make --clean --rmsource and --rmspec work together in _rpm() 2002-02-03 21:01:43 +00:00
ianmacd
514bc14054 not all awks are created equal, so use sub() instead of gensub() in _killall() 2002-01-31 17:03:19 +00:00
ianmacd
f9ad911370 in _zip(), $xspec needs to be quoted to stop it from acting as a shell glob,
rather than a parameter to compgen
2002-01-31 16:01:43 +00:00
ianmacd
d1dfcfb8aa unzip now also handles .exe files 2002-01-31 00:35:52 +00:00
ianmacd
d169c1f6d9 fix _find() so that if first command line parameter does not begin with -,
directory completion is performed. Previously 'find h<Tab>' would result
  in 'find -help'.
2002-01-30 18:48:45 +00:00
ianmacd
3c1d0b8528 update release to 20020130 2002-01-30 04:08:47 +00:00
ianmacd
bcd711c86e --clean can be used stand-alone in _rpm() 2002-01-30 04:04:28 +00:00
ianmacd
ee876ec281 make _ifupdown() detect a Debian Linux system and act accordingly
in _man(), check that /etc/man.config is readable, not just that it exists
in _rpm(), check that /var/log/rpmpkgs is readable, not just that it exists
2002-01-29 22:06:26 +00:00
ianmacd
8be8d85656 define $BASH_COMPLETION to hold location of completion script. This is a
read-only variable used by _filedir_xspec(). Why doesn't bash have a
  built-in variable to return the path of the file currently being sourced?
2002-01-29 20:33:49 +00:00
ianmacd
fc2bfe2630 apparently, it should be aviplay, not avifile 2002-01-29 19:30:00 +00:00
ianmacd
1eec8baf69 call _expand() from a couple more places in _rpm() 2002-01-29 17:31:22 +00:00
ianmacd
71807594e7 make _filedir_xspec() use the basename of commands when looking for matching
exclusion specs (acroread <Tab> worked, whereas /opt/bin/acroread <Tab>
  did not)
2002-01-24 20:20:31 +00:00
ianmacd
a06bbf97ed release updated to 20020124
call _expand() from some of the completion routines()
find now performs default completion, rather than dirnames, if nothing else
  is returned
2002-01-24 04:03:26 +00:00
ianmacd
00c593b279 _rpm() now performs tilde expansion when file globbing
removed commented out gzip and bzip2 one-liners
2002-01-23 23:41:00 +00:00
ianmacd
1ad5366035 renamed _file_and_dir() _filedir_xspec()
created _filedir(), which is used by cat, less, more, ln and strip, so that
  tilde expansion can be performed, prior to pathname expansion
2002-01-23 23:36:30 +00:00
ianmacd
b212d50286 _zip() added for gzip and bzip2, so that they complete on .gz2 and .bz2 files
when invoked with the -d flag.
_expand() created for doing tilde expansion on path names. It returns the
  number of elements in the COMPREPLY array. _zip(), _cd() and
  _file_and_dir() now call this.
fixed minor bug in _file_and_dir() that was removing the '-' from the front of
 its parameter
2002-01-23 23:13:21 +00:00
ianmacd
8a24450eeb by popular request, comment out compspecs for gzip and bzip2. Added a
conditional to installation section of _file_and_dir() to not bind commented
  out compspecs to commands
2002-01-23 20:35:17 +00:00
ianmacd
aa8c28a50a add --rmspec handling to _rpm() 2002-01-23 17:24:46 +00:00
ianmacd
c442af0caa turn off command tracing when DEBUG is unset
unzip also unpacks .jar files
add ggv to commands that take PostScript files
mplayer CAN'T use MP3 files
_command() wasn't redirecting stderr, so would display a harmless error message
  when in 'sudo x <Tab>', 'x' didn't have its own compspec
in 'sudo x $1 $2 $n', _command() was calling x's own completion function and
  passing the rest of the command line as a single parameter, rather than as
  individual tokens. This is fixed, but there may be other breakage as a
  result. Need to do more testing.
2002-01-23 17:14:19 +00:00
ianmacd
da25ac6be2 handle rpm -qip (and similar) as well as rpm -qpi 2002-01-22 07:19:47 +00:00
ianmacd
60ac972e43 fix bug in 'sudo x <Tab>' where 'x' has no compspec of its own 2002-01-21 15:48:10 +00:00
ianmacd
43436526a4 errors caused by missing quotes fixed (duh!) 2002-01-21 15:29:54 +00:00
ianmacd
2bef4ccf1d remove previous _command() completion function
updated release to 20010121
2002-01-21 03:58:42 +00:00
ianmacd
82cdf78ceb completely rewrote _command(), so that commands like sudo and strace first
complete on a command, then complete according to that command's own
  completion specification. E.g. sudo rpm <Tab> would further complete
  according to _rpm(), as if it were being called directly
iptables completion was being installed, even if it were not in user's PATH
2002-01-18 15:54:22 +00:00
ianmacd
e595f72665 added some one-liners for multimedia programs 2002-01-16 07:18:11 +00:00
ianmacd
406c771277 _known_hosts(): finally thought of a way to correctly perform completion
when host specification is of the form user@host
_known_hosts(): moved escaping of dots in $cur to within 'if' block that
  requires it
2002-01-16 07:14:14 +00:00
ianmacd
f433992548 _man() wasn't completing on filenames with a relative path 2002-01-16 02:16:56 +00:00
ianmacd
6f82e53362 updated release to 20020115 2002-01-15 17:20:48 +00:00