3458 Commits

Author SHA1 Message Date
Ville Skyttä
709d6e0690 *_tilde*: Escape tilde in [[ $1 == \~* ]] tests (RedHat: #817902). 2012-06-14 21:54:32 +03:00
Ville Skyttä
d141f9c6eb lbzip2: Add -n argument completion. 2012-06-14 21:31:30 +03:00
Ville Skyttä
f8ac6a5aeb autotools: Use MKDIR_P instead of mkdir_p (Alioth: #313671).
mkdir_p is obsolete since automake 1.10 and will be removed in 1.13
according to docs in 1.12.1.
2012-06-08 18:59:31 +03:00
Guillaume Rousse
127a65fee2 Merge branch 'master' of git+ssh://git.debian.org/git/bash-completion/bash-completion 2012-06-06 15:41:18 +02:00
Guillaume Rousse
67d30da6b7 add xz compression extension for kernel modules 2012-06-06 10:45:43 +02:00
Ville Skyttä
b54adedd4f xmllint: Add *.svgz. 2012-06-05 21:12:35 +03:00
Ville Skyttä
e0dc594d2a qiv: Add *.svg. 2012-06-05 21:12:26 +03:00
Ville Skyttä
7532eda90f Spelling fix. 2012-06-05 17:32:00 +03:00
Ville Skyttä
f990d5e617 Comment spelling fix. 2012-05-31 00:03:41 +03:00
Ville Skyttä
32f223963a _realcommand: Try greadlink before readlink (Alioth: #313659).
Some systems' readlink does not have -f, but may have the GNU readlink
which does installed as greadlink.
2012-05-30 23:56:58 +03:00
Ville Skyttä
739c6d2833 man: Recognize 3gl as man page filename extension -- at least Mesa uses it. 2012-05-16 22:11:26 +03:00
Ville Skyttä
f7240b82a4 make: Add generic variable completion. 2012-05-11 23:28:57 +03:00
Igor Murzov
ccda61d928 _expand: Suppress unwanted bash error messages (Alioth: #313497) 2012-04-18 20:33:11 +04:00
Jonathan Nieder
8b3f19a82e ri: Rename ri_get_methods helper to add leading underscore
Completions generally name the identifiers they export with a leading
'_' to avoid clashing with user functions.  The only exception is this
helper function in the "ri" completion script; fix it.

Reported-by: Felipe Contreras <felipe.contreras@gmail.com>
2012-04-18 17:41:43 +04:00
Igor Murzov
587d26834a cppcheck: Complete new --relative-paths option arguments
(introduced in cppcheck-1.54).
2012-04-16 00:37:14 +04:00
Igor Murzov
4710d1bf48 fbgs: Add new options introduced in fbida-2.09.
fbgs now has more long options and also accepts much of fbi's ones.
2012-04-08 18:29:57 +04:00
Igor Murzov
63574c8f14 fbi, feh: Complete more supported file formats.
Since release 2.4 feh uses convert(1) from ImageMagick to load files in
unsupported formats just like fbi does, so add some more extensions to
the list of supported formats. Also add 'cdr' and 'otf', 'ttf' as these
formats are discovered to work fine.
2012-04-08 17:19:53 +04:00
Igor Murzov
d2a3db0b7a feh: Update option argument completions.
Some options were dropped in recent feh releases, and a couple of new
ones were added.
2012-04-08 17:13:05 +04:00
Ville Skyttä
3d7102b9a5 hwclock: New completion. 2012-04-04 22:54:30 +03:00
Ville Skyttä
0ab693ca50 acpi: New completion. 2012-03-26 22:15:49 +03:00
Ville Skyttä
1fc97c47ba testsuite/generate: Tweak linefeeds. 2012-03-26 22:12:43 +03:00
Igor Murzov
39ac4642bf man: Move variable declaration to the right place. 2012-03-25 18:14:18 +04:00
Igor Murzov
fb2d657fac man: --path option is supported on Darwin (Alioth: #313584) 2012-03-25 18:14:10 +04:00
Igor Murzov
199a63bd4d insmod, modprobe: Don't hardcode path to modinfo (Alioth: #313569) 2012-03-14 01:00:22 +04:00
Ville Skyttä
a062777d4b lyx: Remove simple completion, upstream has more complete one (Debian: #662203) 2012-03-11 19:44:34 +02:00
Ville Skyttä
bed5694111 vmstat: New completion. 2012-02-21 22:00:39 +02:00
Ville Skyttä
91528b5271 su: Complete -s/--shell with shells instead of all files. 2012-02-18 10:14:29 +02:00
Ville Skyttä
e7c4035089 su: Add --session-command arg completion. 2012-02-18 10:13:24 +02:00
Ville Skyttä
e4fe946621 su: Fix long option handling. 2012-02-18 10:12:02 +02:00
Ville Skyttä
f41d7e2ff6 testsuite: Add basic su test case. 2012-02-18 10:10:38 +02:00
Igor Murzov
d2aedc83e1 su: Add linux-specific completion 2012-02-17 05:14:51 +04:00
David Paleino
071ba93a0b Really complete 'changelog' 2012-02-10 20:44:10 +01:00
David Paleino
ae98bfa721 apt-get: add 'changelog' to completed commands 2012-02-10 20:41:26 +01:00
Ville Skyttä
cff897eda8 pigz: Add -p/--processes arg completion. 2012-02-06 23:51:17 +02:00
Anthony Ramine
ec7fe00066 Properly declare 'symlinks' dependencies 2012-02-06 10:28:41 +01:00
Igor Murzov
98f90ebdf8 _filedir: Properly quote paths to avoid unexpected expansion. 2012-01-20 05:11:17 +04:00
Ville Skyttä
d7a6fb1f47 testsuite: Fix spurious modinfo and modprobe test failures on systems that have /lib and /lib64 dirs. 2012-01-18 23:43:11 +02:00
guns
6f3d650e23 Workaround bash bug that fails to complete <, >
There is a bug in bash that causes completions of some of the
redirection operators to fail if a default completion function is
defined.

The details are in the following bug-bash mailing list message, but put
simply, when completing a command line "> ", bash mistakenly searches
the completions table for an empty string, and failing that, sends
the default completion function not an empty string, but the actual
redirection operator '>' as the first argument.

http://lists.gnu.org/archive/html/bug-bash/2012-01/msg00045.html

This is quite simply worked around for the moment by defining the
_minimal completion for the empty string. This allows filename
completion for people who like to:

    $ > cats.txt        # Truncate files quickly
    $ >> cats.txt       # Use redirection as a quick 'touch'
    $ < cats.txt cat    # Use redirection at the beginning of the
                        # command line

Given the slow bash upgrade cycle for various operating systems, a
workaround for this issue will be necessary for a long time.
2012-01-18 23:35:54 +02:00
Ville Skyttä
45c0886acc mplayer: Add generic handling of options that take arguments. 2012-01-15 14:24:38 +02:00
Ville Skyttä
a90d7d861a mplayer: Add -monitoraspect arg completion. 2012-01-15 14:00:33 +02:00
Ville Skyttä
d02b4e15e3 insmod: Install for insmod.static too. 2012-01-14 11:43:15 +02:00
Ville Skyttä
068e422222 testsuite/generate: Generate less linefeeds. 2012-01-14 11:42:07 +02:00
Ville Skyttä
47c49dbfec rmmod: Add option completions. 2012-01-14 11:40:54 +02:00
Igor Murzov
33883145af sbopkg, slackpkg, slapt-{get,src}: Use shorter form of the check if file exists.
Also add information about corresponding man pages.
2012-01-13 00:20:45 +04:00
Igor Murzov
32e8f33018 sbopkg: Use _parse_help.
Reviewed-by: Sergey V <sftp.mtuci@gmail.com>
2012-01-13 00:20:20 +04:00
Igor Murzov
f67818e023 modprobe, modinfo, insmod: Move modprobe and modinfo completions to their own files.
Also fix some options handling and errors in unusual usecases (Alioth: #313498).
Patch is partially written by Lekensteyn <lekensteyn@gmail.com>
Reviewed-by: Sergey V <sftp.mtuci@gmail.com>
2012-01-13 00:19:26 +04:00
Igor Murzov
db53fc77a5 _modules: Ignore error messages. 2012-01-13 00:17:51 +04:00
Igor Murzov
1cb1e31e18 mount.linux: Add some new mount options intoduced in Linux 3.0-3.2
Also add jffs2 to the fs list.
See: http://kernelnewbies.org/Linux_3.2
2012-01-13 00:17:51 +04:00
David Paleino
2ad325d4af Revert "Fix completion loading when a symlink is sourced, thanks to Jonathan Nieder"
This reverts commit 318759c8497cfce3704bc1b97c41459a5be08f7b.
2012-01-11 21:48:35 +01:00
David Paleino
318759c849 Fix completion loading when a symlink is sourced, thanks to Jonathan Nieder 2012-01-11 14:37:15 +01:00