28 Commits

Author SHA1 Message Date
Ville Skyttä
6185297fc9 *: Line continuation, whitespace, and compgen -W ... -- "$cur" quoting cleanups. 2013-02-17 23:49:30 +02:00
Jan Kratochvil
86d0395fc5 rpm: Treat -r as --root (RedHat: #759224). 2011-12-01 21:19:54 +02:00
Ville Skyttä
b9069afa55 rpm: Add --delsign completion, don't suggest --resign (identical to --addsign). 2011-11-12 23:15:13 +02:00
Ville Skyttä
3b8ef29ef3 Cleanups: Use [[ instead of [. 2011-11-09 23:28:11 +02:00
Ville Skyttä
0d10b94e7a Move Emacs indentation settings from every file to .dir-locals.el. 2011-11-01 22:14:45 +02:00
Ville Skyttä
156656c16d Split/rename many completions into per-command files. 2011-10-12 23:01:10 +03:00
Ville Skyttä
20c05b43b6 Load completions in separate files dynamically, get rid of have(). 2011-10-12 00:19:50 +03:00
Ville Skyttä
bae27caab0 rpmbuild: Bring back --target completion lost in commit 914da74. 2011-09-03 23:28:39 +03:00
Ville Skyttä
914da74d2c rpm: "Export" compatible build arch completion as _rpm_buildarchs for reuse. 2011-09-03 23:13:27 +03:00
Ville Skyttä
c875723bef Include trailing equals sign in options that take arguments that way.
This way it's clearer to users that an argument is expected.  It's
likely that this commit does not catch all such cases, but it should
do it for most of the affected commands I have installed.
2011-05-02 11:45:55 +03:00
Ville Skyttä
a54857cd05 _init_completion: Add -s for splitting long options, use it in completions. 2011-05-02 00:04:26 +03:00
Ville Skyttä
6e809d032c Remove = from COMP_WORDBREAKS when using _split_longopt().
Without this, it does not do anything useful in bash >= 4.0.
2011-04-25 00:09:50 +03:00
Ville Skyttä
9f45e81e65 Drop no longer needed _compopt_o_filenames().
Use compopt -o filenames directly instead.
2011-04-21 12:33:05 +03:00
Ville Skyttä
8048917968 Use _init_completion() in completions/[q-z]*. 2011-04-21 11:15:01 +03:00
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ä
d852c18d41 Simplify rpmbuild --buildpolicy completion. 2011-02-13 18:54:54 +02:00
Ville Skyttä
34f574dc89 Add rpmbuild --buildpolicy completion. 2011-02-11 00:06:20 +02:00
Ville Skyttä
6042cbe2f5 Split rpm and rpmbuild completions and improve them both.
The option sets are different, and rpm should not have been used to
build packages since rpm 4.0, and could not have been used for that
since rpm 4.1.
2011-02-10 23:51:26 +02:00
Ville Skyttä
4c1e0d5cf2 Drop rpm query support for rpm < 4.1. 2011-02-10 23:37:04 +02:00
Ville Skyttä
dcb90a38ab Make rpm --queryformat use more consistent. 2011-02-10 23:25:51 +02:00
Ville Skyttä
d066ace4cb Do file completion after gendiff output redirection.
Common use case is "gendiff DIR EXTENSION > FILE".
2011-02-07 20:59:01 +02:00
Ville Skyttä
3123e2ac4c Add gendiff completion. 2011-02-05 16:54:48 +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ä
b31530f125 Add *.tar to rpmbuild -tb filename completions. 2010-10-23 22:32:06 +03:00
Ville Skyttä
75b232ad3f Indentation/line wrapping fixes. 2010-10-23 13:32:37 +03:00
Ville Skyttä
a55f763363 Trivial cleanups. 2010-10-07 20:07:46 +03:00
Ville Skyttä
4cd7c7c872 Treat *.spm as *.src.rpm.
Source rpms are sometimes named *.spm, e.g. in SUSE.
2010-10-07 20:05:55 +03:00
Guillaume Rousse
cb7fc2f7c4 rename 'contrib' directory to 'completions' 2010-09-12 16:42:21 +02:00