Ville Skyttä
5bcf5bae41
Fix povray completion, broken in f8bafe285e7d20fdd82f77289059dd18f78312c2.
2010-09-19 12:41:46 +03:00
Ville Skyttä
7ea7d7b268
Simplify filename completions per new _filedir(_xspec) uppercasing behavior.
2010-09-19 12:29:29 +03:00
Ville Skyttä
c183a585b2
Match uppercased versions of _filedir and _filedir_xspec arguments too.
...
This provides a bit of case insensivity to file extension matching,
allowing for example _filedir foo to match both *.foo and *.FOO. Note
that this is not real case insensivity; mixed case extensions like
*.FOO.gz are not matched by _filedir foo.gz so those need to be
handled like before this change.
2010-09-19 12:12:06 +03:00
Ville Skyttä
d0bcb5347e
Don't complete jar and povray on filenames ending with a dot.
2010-09-19 11:48:10 +03:00
Ville Skyttä
8e23895fe5
Avoid stderr output from compopt when invoking _filedir directly.
...
The _filedir unit test currently does this, causing (harmless) error output.
2010-09-19 11:33:52 +03:00
Ville Skyttä
d2a551fad4
Combine identical xdvi and kdvi completions.
2010-09-18 20:51:51 +03:00
Ville Skyttä
45668c23d3
Add compgen completion.
2010-09-14 21:04:36 +03:00
Ville Skyttä
806bc113de
Line wrapping tweak.
2010-09-14 21:03:00 +03:00
Ville Skyttä
3b7ed98459
Add xmodmap and xrdb completions.
2010-09-14 21:01:17 +03:00
Ville Skyttä
0f426b0774
Drop bad kompare filename completion (Alioth: #312708 ).
2010-09-13 21:25:21 +03:00
Guillaume Rousse
796f77ef22
rename 'contrib' directory to 'completions'
2010-09-12 16:44:39 +02:00
Guillaume Rousse
cb7fc2f7c4
rename 'contrib' directory to 'completions'
2010-09-12 16:42:21 +02:00
Guillaume Rousse
276e3a780e
use BASH_COMPLETION_DIR for locating helpers, avoiding the use of an install-time substitution
2010-09-12 16:40:04 +02:00
Guillaume Rousse
c85a8b9a3e
install helpers in a subdirectory of completions
2010-09-12 16:39:30 +02:00
Guillaume Rousse
ff6172097d
symlinks are automatically dereferenced for -f test, so don't use -h test
2010-09-12 16:38:59 +02:00
Guillaume Rousse
a3ae00956d
add freerdp completion
2010-09-12 11:38:22 +02:00
Ville Skyttä
c78db545f5
Add iftop(8) completion.
2010-09-10 00:12:03 +03:00
Ville Skyttä
0630139697
Add POSIX sh completion.
2010-09-05 11:02:03 +03:00
Ville Skyttä
a26e92e6f3
Improve rpm query option completions.
...
Add --nomanifest, --all, --file, --fileid, --ftswalk, --group, --hdrid,
--package, --pkgid, and --specfile; suggest --triggeredby, --whatprovides,
and --whatrequires only in installed package query mode.
2010-09-05 10:57:02 +03:00
Ville Skyttä
c8fb5f2eb1
Simplify rpm query mode detection expressions.
2010-09-05 00:12:24 +03:00
Ville Skyttä
4d0b8be863
Recognize rpm query mode based on the --file, --group, --package, and --all long options (RedHat: #630328 ).
2010-09-05 00:03:10 +03:00
Ville Skyttä
217735d807
Add *.xsd, *.xsl, *.rng, and *.wsdl to xmllint filename completions.
2010-09-03 20:23:35 +03:00
Guillaume Rousse
2d699bd8b5
Revert "merge iconv and getent completions, as they are both glibc utils"
...
This reverts commit 3f0d8f8e9f1991e7d7610fd210c68421eef4e09f, as this is
only true for Linux
2010-08-22 11:16:33 +02:00
Ville Skyttä
fa04cb8114
Add *.part to mplayer and xine-based player completions (Alioth: #312657 ).
2010-08-20 14:09:28 +03:00
Ville Skyttä
486369d45b
Add *.3gpp and *.3gpp2 to mplayer filename completions.
2010-08-20 13:37:19 +03:00
Ville Skyttä
37308e3594
Simplify _filedir arguments.
2010-08-20 13:35:12 +03:00
Freddy Vulto
e846d84ed1
Fix _filedir to redirect only stderr
2010-08-20 11:28:19 +02:00
Freddy Vulto
10b6c0e214
Merge branch 'master' of git+ssh://fvu-guest@git.debian.org/git/bash-completion/bash-completion
2010-08-19 22:31:35 +02:00
Guillaume Rousse
3f0d8f8e9f
merge iconv and getent completions, as they are both glibc utils
2010-08-19 13:36:47 +02:00
Freddy Vulto
b867bcd64f
Fix _filedir error message on bash-3
...
In case of `sudo cmd', _filedir might be triggered for a cmd not having a
complete command, hence `complete -p cmd' could yield an error. (Alioth
2010-08-18 23:01:26 +02:00
Guillaume Rousse
9b97b40c4a
don't source Makefiles when run from test suite
2010-08-16 21:17:51 +02:00
Guillaume Rousse
3084903144
recurse in helpers dir
2010-08-09 22:29:56 +02:00
Guillaume Rousse
c030827fdc
dynamic creation of perldoc completion, to point to helper script
2010-08-09 22:24:52 +02:00
Guillaume Rousse
07b7ddd1dd
add pure perl perldoc completion helper
2010-08-02 22:15:35 +02:00
Guillaume Rousse
6d556ee5b7
split installation logic for completions in a separate Makefile.am, for
...
easier management of generated files
2010-08-02 22:07:24 +02:00
Ville Skyttä
bdf063edd1
Add *.awb to mplayer filename completions.
2010-07-27 23:40:19 +03:00
Miklos Vajna
51b4f5b5c4
Add *.amr to mplayer file completions (Alioth: #312634 ).
2010-07-27 22:41:41 +03:00
Paul Walmsley
fc3c16e953
Add *.webm to mplayer file completions (Debian: #588079 ).
2010-07-13 21:05:26 +03:00
Ville Skyttä
5eead0ebee
Fix p4 completion, was broken in f8bafe285e7d20fdd82f77289059dd18f78312c2 (Alioth: #312625 ).
2010-07-11 14:51:06 +03:00
Ville Skyttä
bb8ba40235
Note Anton's mplayer completion improvements.
2010-07-11 12:16:52 +03:00
Anton Khirnov
b925bff04c
mplayer: update lavdopts suboptions
...
also sort them in alphabetical order
2010-07-11 12:15:21 +03:00
Anton Khirnov
78107506c6
mplayer: fix profile names completion.
...
unlike other '-foo help' style options for which the first line is
mplayer copyright info followed by ^Available line, -profile help
outputs first the list of profile names and copyirght info is actually
the last line.
2010-07-11 12:11:23 +03:00
Anton Khirnov
d1f5b983af
mplayer: complete on .nut and .bik files.
2010-07-11 11:51:24 +03:00
Anton Khirnov
b0c9212c54
mplayer: run mplayer with -nomsgmodule -nomsgcolor
...
this fixes completion if user has msgmodule and/or msgcolor enabled in
the config file.
2010-07-11 11:45:32 +03:00
Freddy Vulto
7b67991c18
(testsuite) Fix ls test
...
Append slash (/) or space (" ") to completion depending on whether
`~user' home directory exists or not.
2010-07-02 07:06:32 +02:00
Ville Skyttä
ff7c17e599
Trivial cleanups.
2010-07-01 20:21:35 +03:00
Freddy Vulto
66d3b63915
Speed up `compopt' availability detection.
...
Used `type compopt' instead of `compopt' to detect availability of
compopt because (at least on Ubuntu) a python-command-not-found handler
is started when issuing a non-existing command, thus resulting in
considerable slower completions on systems without compopt (bash < 4.0).
2010-06-30 23:40:13 +02:00
Freddy Vulto
ccbf141e13
Fix tilde (~) completion with _filedir
...
This fixes tilde completion when doing for instance `ls ~<TAB>'. See
also: Alioth #312613 .
Added _tilde() helper function.
Contrary to _expand() and __expand_tilde_by_ref(), _tilde() also leaves the
tilde (~) intact. Replacement of the tilde has been a complaint in other
bugreports, especially since plain bash completion (without bash-completion
installed) doesn't expand the tilde when doing a `ls ~<TAB>'.
To run the tests:
./run completion/ls.exp
./run unit/_tilde.exp
2010-06-30 23:28:31 +02:00
Ville Skyttä
6571c6685c
Add sqlite3 option completions, include *.db in filename ones (Alioth: 312605).
2010-06-29 19:30:32 +03:00
Ville Skyttä
603c25903d
Simplify/improve /etc/init.d/* completions.
...
Avoid subshell, do the right thing for filenames with spaces, do not
install completions for non-executable files.
2010-06-28 19:55:40 +03:00