264 Commits

Author SHA1 Message Date
Freddy Vulto
532f0a0e3f Fixed ssh/scp/sftp -F completions
- -F<TAB> (without a space) now also completes.
- Fixed error when completion -F with file containing spaces
- Call _filedir instead of _filedirs in sftp

NOTE: Because the ssh & sftp completions don't have `-o filenames' in
effect, _filedir won't escape spaces in filenames.  This can be seen in
the tests as "expected failures (XFAIL)".  See also:
http://lists.alioth.debian.org/pipermail/bash-completion-devel/2009-July/001766.html

To run the tests:

    cd test && ./runCompletion ssh.exp scp.exp sftp.exp
2009-07-31 12:16:45 +02:00
Freddy Vulto
740c6239b1 Merge branch 'fvu' 2009-07-31 10:41:06 +02:00
Freddy Vulto
f458bada6c Call _filedir instead of _filedirs in screen
NOTE: Because the `screen' completion doesn't have `-o filenames' in
effect, _filedir won't escape spaces in filenames.  See also:
http://lists.alioth.debian.org/pipermail/bash-completion-devel/2009-July/001766.html
2009-07-31 10:38:59 +02:00
Ville Skyttä
f8319fa0ea Add *.lzma to xz, unxz and xzcat completions. 2009-07-30 18:35:58 +03:00
Freddy Vulto
7757969621 Merge branch 'fvu' 2009-07-29 22:14:56 +02:00
Freddy Vulto
91f804f8fb Fixed povray indentation 2009-07-29 22:09:45 +02:00
Ville Skyttä
c86a402077 Load "modules" completion if /etc/profile.d/modules.sh exists even if the "module" alias has not been defined (yet). 2009-07-29 00:22:14 +03:00
Ville Skyttä
e7af368e9b Use $default instead of -o default. 2009-07-29 00:12:54 +03:00
Ville Skyttä
c6360dde51 Trim trailing whitespace (cosmetic, no functional changes). 2009-07-25 13:38:42 +03:00
Ville Skyttä
328bd60242 Add missing line continuation backslash (cosmetic, no functional changes). 2009-07-25 13:36:35 +03:00
Freddy Vulto
3d7321bc68 Fix leaking $i from python completion 2009-07-24 11:52:58 +02:00
Freddy Vulto
6966cad8cf Fix leaking $i from `man' completion 2009-07-24 09:07:32 +02:00
Ville Skyttä
d3d1a9f895 Add xz, xzcat, xzdec, and unxz completion. 2009-07-20 19:57:36 +03:00
Freddy Vulto
11302d4038 Reviewed tests h* & i*
Localized `i' variable in `info' completion.
2009-07-18 16:55:23 +02:00
Freddy Vulto
c6af1bf435 Reviewed tests g*
Removed excess parenthesis from gdb completion
2009-07-18 09:43:25 +02:00
Ville Skyttä
cbe81a50da Add link to Ubuntu bug about disabling database and user completions. 2009-07-14 21:11:48 +03:00
Ville Skyttä
0c44194be2 Improve xmllint --dtdvalid, --relaxng, --schema and --schematron completions. 2009-07-07 18:50:56 +03:00
Ville Skyttä
0f18d2327a Add xmlwf completion. 2009-07-07 18:48:22 +03:00
Freddy Vulto
25e4eb6df3 Gave _known_hosts_real mandatory argument CWORD
The option `-h hostname' to `_known_hosts_real' is removed.
2009-07-03 22:28:13 +02:00
Freddy Vulto
8358f35def Merge branch 'master' of git+ssh://fvu-guest@git.debian.org/git/bash-completion/bash-completion 2009-06-18 21:52:32 +02:00
Freddy Vulto
127eaafb54 Fixed calls to _known_hosts_real
Made _known_hosts_real raise error if there are unprocessed arguments.
2009-06-18 21:51:01 +02:00
Ville Skyttä
d9cce38567 Eliminate redundant code. 2009-06-18 20:41:15 +03:00
Ville Skyttä
8b2416c180 Invoke the actual mplayer/mencoder command being completed (with full path) to get various completions instead of simply "mplayer" or "mencoder". 2009-06-18 20:36:09 +03:00
Freddy Vulto
cdf0e82686 Fix contrib/ssh command completion
Only complete with command names (compgen -c) if argc > 1
2009-06-17 23:45:00 +02:00
Freddy Vulto
2afa079ff5 Changed calls to _known_hosts > _known_hosts_real 2009-06-13 12:25:36 +02:00
Freddy Vulto
0b19577ed9 Added -h HOST option to _known_hosts_real
Modified call to _known_hosts_real in ssh, vncviewer and xhost completions.
2009-06-13 08:38:52 +02:00
Ville Skyttä
fb58599470 Use _split_longopt in mailman. 2009-06-12 20:26:54 +03:00
Ville Skyttä
4f04c9553d Add 'have foo's. 2009-06-12 20:24:00 +03:00
Ville Skyttä
4956b5fef5 Use _split_longopt in heimdal. 2009-06-12 20:19:20 +03:00
Ville Skyttä
eea696d9cc Use _split_longopt in bluez-utils. 2009-06-12 20:18:09 +03:00
Ville Skyttä
a8723b42ea Use compgen -W instead of grepping $cur in mailman. 2009-06-12 20:16:18 +03:00
Ville Skyttä
2c882c3cfe Use compgen -W instead of grepping $cur in heimdal. 2009-06-12 20:14:52 +03:00
Ville Skyttä
0d78b4913f Use compgen -W instead of grepping $cur in bluez-utils. 2009-06-12 20:14:10 +03:00
Ville Skyttä
9a7c9804f2 Use compgen -W instead of grepping $cur in wireless-tools. 2009-06-12 20:12:47 +03:00
Ville Skyttä
42ca281cb7 Use _split_longopt for reportbug. 2009-06-12 20:11:23 +03:00
Ville Skyttä
215cdb9cf4 Use compgen -W instead of grepping $cur in vpnc. 2009-06-12 20:10:18 +03:00
Freddy Vulto
e847d57e50 Improved test suite from bash-completion-lib
Run the tests with:
$ cd test
$ ./runCompletionUnit
$ ./runCompletionCompletion

The last test of unit/_known_hosts gives UNRESOLVED and needs fixing.
2009-06-09 22:49:53 +02:00
Ville Skyttä
468ba8f150 Use compgen -W instead of grepping $cur in xm create, mute errors from unreadable /etc/xen. 2009-06-09 00:46:29 +03:00
Ville Skyttä
b69961b257 Use _split_longopt with yum, add some option (non-)completions. 2009-06-09 00:41:14 +03:00
Ville Skyttä
a2c2227d1d Use compgen -W instead of grepping $cur in munin-run. 2009-06-09 00:25:06 +03:00
Ville Skyttä
8270b9cf81 Use compgen -W in mock root completions. 2009-06-09 00:19:58 +03:00
Ville Skyttä
2e641b5c6f Improve rpm group completion.
Displayed completions are still wrong but now at least real ones containing
spaces do work and unusual input does not cause grep errors.
http://lists.alioth.debian.org/pipermail/bash-completion-devel/2009-May/001486.html
2009-06-09 00:13:20 +03:00
Ville Skyttä
d677dfe33b Add _split_longopt TODOs. 2009-06-08 21:41:22 +03:00
Ville Skyttä
e7c3bbe23c Add missing 'have foo's. 2009-06-08 21:22:43 +03:00
Ville Skyttä
cb8c77011e Use _split_longopt in pkg-config completion, some trivial improvements. 2009-06-08 21:11:39 +03:00
Ville Skyttä
079aca216a Split Slackware pkgtools completion to contrib/pkgtools. 2009-06-08 20:49:52 +03:00
Ville Skyttä
df5f55e055 Fix syntax error introduced in previous commit. 2009-06-08 20:42:51 +03:00
Ville Skyttä
cba4d8faf8 Split various FreeBSD completions to contrib/ . 2009-06-08 20:41:52 +03:00
Guillaume Rousse
acef9e78e3 split cancel completion 2009-06-08 16:55:03 +02:00
Guillaume Rousse
7522b94f33 split configure completion 2009-06-08 16:51:48 +02:00