3526 Commits

Author SHA1 Message Date
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
ianmacd
3a43467dbe mysqladmin completion 2002-01-14 20:38:22 +00:00
ianmacd
67ace8d11b updated release to 20020109 2002-01-09 15:32:30 +00:00
ianmacd
edb94548a0 added _chgrp() completion 2002-01-08 04:49:06 +00:00
ianmacd
83f81e3130 added _ifupdown() for Red Hat Linux if{up,down} completion 2002-01-08 00:33:08 +00:00
ianmacd
0ad9c24811 improve _iptables() with some chain name completion 2002-01-08 00:26:49 +00:00
ianmacd
8aa9afba1d fix iptables - it no longer worked at all, because $prev wasn't set 2002-01-06 18:11:12 +00:00
ianmacd
1f2e4f47e6 _cd() was no longer completing relative to $CDPATH 2002-01-06 03:21:04 +00:00
ianmacd
8b5de2fb80 add release date 2002-01-05 20:04:01 +00:00
ianmacd
e961f14f55 fixed _cd() so that if $CDPATH is set and no completions are returned
relative to its paths, we still attempt directory completion relative to $PWD
2002-01-05 19:48:59 +00:00
ianmacd
5dfe16ea34 make gv also complete on encapsulated PostScript files
add jadetex and pdfjadetex to commands that complete on tex files
improved tar completion to handle .tgz and .tar files
inproved tar completion to perform file completion when c*f is the first
  parameter
2002-01-05 19:42:41 +00:00
ianmacd
535803534b add 'conflicts' and 'obsoletes' query completions to _rpm() 2002-01-04 18:29:18 +00:00
ianmacd
7d8abf3421 make gv also complete on PDF files
include --repackage for rpm -[ei]
fix _cd so that it completes on directories with an embedded space
fix _file_and_dir so that it completes on directories with an embedded space
2002-01-04 04:34:21 +00:00
ianmacd
d1d0566a3c no group completion for chgrp, since we ideally also want filename completion
on second and subsequent parameters
2002-01-03 00:17:44 +00:00
ianmacd
450ab1e5e3 add group completion for chgrp
change embedded tabs in the file to $'\t' syntax
be a bit more elegant in determining location of showmount in _mount()
condense awk|grep combo in _configure() to a single sed command
be more intelligent about parsing for exclusion (-X) compspecs when
  binding commands to _file_and_dir()
2002-01-03 00:16:41 +00:00
ianmacd
15dbef4c03 check for showmount in /sbin or /usr/sbin in _mount() 2001-12-21 07:56:18 +00:00
ianmacd
4c07498187 add a compspec for mpg123
condense grep | head into a single sed command in _file_and_dir
2001-12-20 18:26:49 +00:00
ianmacd
1aa894b7dd avoid use of extra file descriptor and grep in _file_and_dir by using
parameter substitutions
2001-12-20 16:12:44 +00:00
ianmacd
2c4236d117 added _file_and_dir as a meta-function for compspecs requiring the -X flag
This allows us to exclude files without excluding directories
use IFS=$'\t' instead of IFS=$(echo -e "\t")
2001-12-20 07:52:12 +00:00
ianmacd
22478325d7 replace spaces with tabs 2001-12-18 03:43:25 +00:00
ianmacd
e5d7d1995f basic nslookup completion added 2001-12-18 03:25:04 +00:00
ianmacd
0cc14422d4 make ee and xv complete on more file-types 2001-12-13 20:34:17 +00:00
ianmacd
1853c7441a ant completion added 2001-12-11 20:25:53 +00:00
ianmacd
ed932a0949 use type (built-in) instead of which (external) to determine whether a
particular command is available
2001-12-05 17:05:49 +00:00
ianmacd
56c3be7ce0 - removed misleading comment on _man completion
- use -g, not -u for group completion (duh!)
- avoid unnecessary use of $COMPREPLY_SAVE in _ssh/_scp
- use '-' as prefix (-P) to kill, not '%', and put it *before* command
- default to filename completion on _scp
- removed a couple of definitions of $prev that weren't actually used
- source ~/.bash_completion if it exists
2001-12-05 16:32:24 +00:00
ianmacd
717b5e5bdd removed _gid_function and made other modifications to account for the fact
that group completion is now standard in bash 2.05a
2001-11-29 00:37:54 +00:00
ianmacd
3b4c23a0d2 make _known_hosts() escape meta-characters in paths before handing off to awk
added missing ` in _service
2001-11-26 18:19:59 +00:00
ianmacd
a5c9861856 $prev not needed in _scp 2001-11-20 20:35:19 +00:00
ianmacd
fffa610ef8 - default to _dirnames on _find
- fixed bug in _known_hosts that caused keys to be printed from known_hosts2
  files
- made _ssh a little more intelligent
- added _scp
- made _cd expand ~ in directory specs
- declared i as a local variable in many functions
2001-11-20 04:15:48 +00:00