95 Commits

Author SHA1 Message Date
Ville Skyttä
e99645d2b9 Add pack200 --repack completion. 2011-01-17 22:07:33 +02:00
Guillaume Rousse
406e8347dd add iscsiadm completion 2011-01-16 23:30:48 +01:00
Ville Skyttä
8843071002 Loosen python executable matching glob. 2011-01-10 20:31:57 +02:00
Ville Skyttä
a2348ba792 Complete "/path/to/python" the same way as plain "python". 2011-01-10 20:29:34 +02:00
Ville Skyttä
8fd9e1d1b9 Avoid "bad array subscript" with /usr/bin/python <TAB> (Debian: #559953). 2011-01-10 20:26:22 +02:00
David Paleino
5f04a30f7a Fixed typo in openssl completion (Debian: #609552) 2011-01-10 17:27:27 +01:00
Ville Skyttä
fe2d7645df Re-enable postgresql database and user completion (Alioth: #312914, Ubuntu: #164772).
This implementation uses -w which is available only in psql >= 8.4,
but the net effect with earlier versions should be the same as when
the completions were disabled.
2011-01-08 23:28:38 +02:00
Ville Skyttä
bda497eb58 Add bunch of java option completions, improve colon handling. 2011-01-04 19:07:30 +02:00
Ville Skyttä
6c21f88456 Append /sbin to PATH when invoking sysctl. 2011-01-04 00:19:48 +02:00
Ville Skyttä
15bc11769b Improve scp path escape regex.
The previous one reportedly ended up escaping 't' to '\t' in some
setups (at least bash 3.2.48 on OS X 10.6, but not with 4.1.7 on
Fedora nor 3.2.25 on CentOS), probably due to missing backslash in the
regex.  This one removes some spurious escaping and duplicates in the
char class, and should communicate the intent better.
2010-12-23 22:05:55 +02:00
Ville Skyttä
2d4ebbaf25 Ignore muttrc source entries that are not files (Alioth: #312881). 2010-12-20 23:46:47 +02:00
David Paleino
c55dfe6982 Complete on all files for mplayer's -dvd-device.
This is because mplayer is able to use a directory as "device" (i.e. if you
  copy a DVD on the harddisk), or even single files (.iso files, for example).
2010-12-18 23:23:59 +01:00
Ville Skyttä
0ceca807c5 Add *.apk to unzip and jar filename completions. 2010-12-16 19:59:41 +02:00
Ville Skyttä
70d5ff09e0 Add *.spkg (Sage Package) to tar filename completions. 2010-12-11 12:56:52 +02:00
Ville Skyttä
6e12e1a2aa Add *.gz versions of supported filenames to xmllint filename completions. 2010-12-09 22:58:01 +02:00
Ville Skyttä
c1d3cdad70 python -c takes a command, not a script. 2010-11-21 20:36:09 +02:00
Ville Skyttä
fdae59d057 Simplify python _filedir glob. 2010-11-21 20:35:25 +02:00
Ville Skyttä
d5a7346390 Add some python option arg non-completions. 2010-11-21 20:30:42 +02:00
Ville Skyttä
4b2c511e2d Get python options with _parse_help(). 2010-11-21 20:29:45 +02:00
Ville Skyttä
d1be965eee Install python completion for python2 and python3 too. 2010-11-21 20:02:12 +02:00
Ville Skyttä
7df38d3c5d Indentation fixes. 2010-11-21 20:00:34 +02:00
Ville Skyttä
96908c87f1 Add lsof(8) completion. 2010-11-21 19:59:38 +02:00
Ville Skyttä
76cf12bc19 Add perl -d: completion. 2010-11-19 22:12:46 +02:00
Ville Skyttä
e9bf8773ec Add perl -V completion. 2010-11-19 22:12:43 +02:00
Ville Skyttä
43ec91619d Add perl -m-/-M- completion. 2010-11-19 22:11:48 +02:00
Ville Skyttä
ee1374f70b Add some perl option non-completions. 2010-11-19 22:10:46 +02:00
Ville Skyttä
2f0948083d Invoke perl module completion with the perl executable being completed. 2010-11-19 21:57:38 +02:00
Ville Skyttä
42589ab9dc Simplify perldoc _filedir arg. 2010-11-19 21:54:53 +02:00
Guillaume Rousse
d2e8e66f09 fix optimisation (bug #312832), and explain the code 2010-11-16 23:05:08 +01:00
Guillaume Rousse
2b6f8de738 drop -o nospace option (fix #312831) 2010-11-16 22:32:13 +01:00
Ville Skyttä
53062bbae2 Don't bother passing unused arg to _perlmodules(). 2010-11-16 22:59:36 +02:00
Ville Skyttä
5b8596231c Fix perl module colon completion trimming. 2010-11-16 22:47:31 +02:00
Ville Skyttä
88924b0cac Comment spelling fix. 2010-11-16 22:25:01 +02:00
Ville Skyttä
8f0055553b Add/improve various autotools completions. 2010-11-12 21:56:40 +02:00
Guillaume Rousse
4254f3a4a5 Switch back to a shell completion function for perl and perldoc
completions, using an external helper just for functions and modules
completions. This is overally slower, as our helper outputs all available
modules at once, rather than just one piece of namespace, but this is
more in line with other completions
2010-11-07 20:01:41 +01:00
Guillaume Rousse
fd8ade0077 rename perldoc helper to perl, as it is now a generic perl completion
handler, and use it for perl completion as well
2010-11-07 01:15:02 +01:00
Guillaume Rousse
2d58e69ef9 rework to match original bash function more closely, including options completion 2010-11-06 23:54:17 +01:00
Guillaume Rousse
1f0dd273f7 no need for usage output 2010-11-06 23:42:38 +01:00
Guillaume Rousse
83fc41d5b1 use same indentation convention as for bash code 2010-11-06 23:42:22 +01:00
Ville Skyttä
b7937bf2f0 Simplify _screen_sessions(), use compgen -W, fixes partial completion. 2010-11-05 21:28:27 +02:00
Alexey Zaytsev
d68b471905 List both attached and detached sesstions for screen -x
Signed-off-by: Alexey Zaytsev <alexey.zaytsev@gmail.com>
2010-11-05 21:09:08 +02:00
Freddy Vulto
edce099a45 (install) Fix relocated helpers dir 2010-11-04 22:40:53 +01:00
Ville Skyttä
642ef5344f Add basic growisofs completion. 2010-11-03 21:11:49 +02:00
Ville Skyttä
7a174c0e1f Add ip completion (Debian: #600617). 2010-11-01 21:39:03 +02:00
Ville Skyttä
0f450219b6 Remove most "-o filenames" options to "complete".
Turn it on dynamically when needed instead; see doc/styleguide.txt for
a longer explanation.  This fixes many non-filename completions which
had been previously more or less broken due to unwanted
escape-as-filenames behavior.
2010-11-01 19:29:45 +02:00
Ville Skyttä
494c44f5a3 Protect filenames with spaces within tar files. 2010-11-01 19:29:45 +02:00
Ville Skyttä
a58697d154 Comment update. 2010-11-01 19:29:45 +02:00
Freddy Vulto
ef8b4f2722 Fix perldoc completions to run without invoking autotools
Alioth #312729

See also:
http://www.mail-archive.com/bash-completion-devel@lists.alioth.debian.org/msg02143.html
2010-10-31 23:20:19 +01:00
Ville Skyttä
ec82c536ed Improve javadoc -overview,-helpfile,-stylesheetfile,-link,-linkoffline completions. 2010-10-31 21:40:22 +02:00
Ville Skyttä
a877567477 Improve relevance of many user/group completions, depending on context.
_usergroup now has a -u option, and there are new _allowed_users and
_allowed_groups helpers.  These can be used to limit returned users
and/or groups to ones that the user has access to (or should be
assumed to have access to if running a "root command").

I had to remove a couple of "funky user" chown test cases because for
some reason they were broken by this change, I didn't immediately find
out why, and I couldn't come up with a valid use case that should be
supported for them that would be more beneficial than the relevance
improvements in this patch.
2010-10-31 21:28:44 +02:00