20 Commits

Author SHA1 Message Date
Ville Skyttä
ee43b22f9b Use += to append to arrays and strings.
It's easier on the eye and faster than foo=( "${foo[@]}" ... ).
2011-04-06 20:39:21 +03:00
Ville Skyttä
9af6f3504e Abort completion file loading earlier if required commands are not available.
Cuts ~10% from bash completion load time on two different systems I
just tested.
2011-04-05 00:37:55 +03:00
Ville Skyttä
94c51fc36e Coding style consistency tweaks. 2011-04-04 23:48:22 +03:00
Ville Skyttä
8aed79dd3e Avoid some unnecessary command invocations. 2011-03-21 19:23:57 +02:00
Ville Skyttä
5792ac8760 Try harder to find the correct perl executable to run the perl helper with.
It is now run explicitly with *some* perl executable.
2011-02-10 21:57: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
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
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
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
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ä
3d8efed618 Fixes to completions for filenames containing tabs (RedHat: #629518). 2010-10-04 20:49:17 +03:00
Guillaume Rousse
cb7fc2f7c4 rename 'contrib' directory to 'completions' 2010-09-12 16:42:21 +02:00