1753 Commits

Author SHA1 Message Date
Freddy Vulto
5999df7fea Merge branch 'master' into fvu 2009-09-13 13:32:14 +02:00
Freddy Vulto
4467ce1725 Fix completion test for dpgk -L 2009-09-12 22:31:10 +02:00
Freddy Vulto
0e1e189f0b Fix leaking $muttcmd from mutt completion 2009-09-12 21:54:17 +02:00
Ville Skyttä
2c82de1a57 Add Fedora/RHEL/CentOS dependency install info. 2009-09-09 19:03:07 +03:00
Ville Skyttä
c31daf26ae Fix sbcl file/dirname completion (Debian: #545743). 2009-09-09 18:54:18 +03:00
Ville Skyttä
bb43fd63bf Split yum into _yum and yum-arch.
The plan is to move yum completion to yum upstream soon:
http://lists.baseurl.org/pipermail/yum-devel/2009-August/005777.html
2009-09-08 20:28:51 +03:00
Ville Skyttä
81458b0b9f Add yum --enable/disableplugin completions. 2009-09-08 20:20:48 +03:00
Ville Skyttä
603ed0acce Use --asciidoc-opts="--unsafe" instead of --unsafe for a2x for compatibility with asciidoc < 8.4.5. 2009-09-08 00:08:31 +03:00
Freddy Vulto
e663e1cbc0 Reverted _get_cword
`_get_cword' is reverted to before commit f6497298.
This fixes unittest:

    "a b:c| with WORDBREAKS -= : should return b:c"
    (| = cursor position)

notably by restoring passing an argument to _get_cword to omit
characters from $COMP_WORDBREAKS.

At the end of `get_cword', `echo "$cur"' has been changed to `printf
"%s" "$cur"'.  This fixes unittest:

    "a -n| should return -n"
    (| = cursor position)
2009-09-07 00:30:09 +02:00
Freddy Vulto
e20a4cb06e Added unit tests for _get_cword
These are the tests (| = cursor position):
1.  a b| should return b
2.  a | should return nothing
3.  a b|c should return b
4.  a b\ c| should return b\ c
5.  a 'b c| should return 'b c
6.  a "b c| should return "b c
7.  a b:c| should return c
8.  a b:c| with WORDBREAKS -= : should return b:c
9.  a -n| should return -n

Tests 5 & 6 yield "expected failures", see bugreport:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=474094 .  At a first glance
this bugreport contains useful ideas, so anyone willing to try to make tests 5 &
6 pass, be sure to have a look there first.

To run the automated tests:

    $ cd test && ./runUnit _get_cword.exp
2009-09-07 00:26:27 +02:00
Ville Skyttä
b5505959af Don't hardcode path to lsmod. 2009-09-06 18:51:00 +03:00
Ville Skyttä
47fb2d8f0e Revert "Improve sudo completion (Alioth: #311414)."
This reverts commit 11d4d978876ceb58eaec5dcfd82fae7b9699acfd.
Avoiding breaking completion for the sudo'd command isn't as
straightforward as I thought.
2009-09-05 00:26:48 +03:00
Freddy Vulto
de585f387d Fix _known_hosts_real() to not glob awk script
See also bugreport Alioth #311614.

Added tests for the awk script processing IP numbers.  To run the tests:

   cd test
   ./runUnit _known_hosts_real.exp
   ./runCompletion ssh.exp scp.exp sftp.exp
2009-09-04 23:08:56 +02:00
Ville Skyttä
11d4d97887 Improve sudo completion (Alioth: #311414). 2009-09-04 23:59:34 +03:00
Ville Skyttä
8770727a08 Add xz and compress support to rpmbuild -t*/--tarbuild completion. 2009-08-26 23:58:50 +03:00
Ville Skyttä
2bef79059c Add more tarball filename extensions to rpmbuild -t*/--tarbuild completion. 2009-08-26 23:55:28 +03:00
Freddy Vulto
31f03cfb82 Fix for known_host files containing * character
Quote sed output ("\1") retrieving "GlobalKnownHostsFile/UserKnownHostsFile" to
prevent bash globbing of special characters, e.g. '*'.

Added unit test "Config file containing star (*) should work".
Added test library function `assert_bash_list()'.
To run unit tests:

    cd test && ./runUnit _known_hosts_real.exp
2009-08-23 09:38:19 +02:00
Freddy Vulto
9af88e6bd4 Fix unit test _known_hosts_real
Test "Empty COMP_KNOWN_HOSTS_WITH_HOSTFILE should omit HOSTFILE" now
includes hosts reported by avahi.
2009-08-18 21:28:43 +02:00
Ville Skyttä
1ed4fa2f62 Comment tweaks. 2009-08-18 11:45:47 +03:00
Ville Skyttä
405e33deed Do not require a dot in bzcmp, bzdiff, bz*grep, zcmp, zdiff, z*grep, zless, and zmore filename completions. 2009-08-18 11:31:39 +03:00
Ville Skyttä
e074f7ff83 Complete bzcat and zcat only on compressed files. 2009-08-18 11:22:16 +03:00
Ville Skyttä
8c43004135 Add lz*grep, lzless, and lzmore completion. 2009-08-18 11:15:01 +03:00
Ville Skyttä
7e92537bad Add $compopt (":" i.e. noop with bash < 4, "compopt" with >= 4). 2009-08-12 23:49:27 +03:00
Freddy Vulto
a1f5b2e2d0 Fix _known_hosts_real() comment 2009-08-12 22:28:42 +02:00
Freddy Vulto
2e87bd4c01 Added setting COMP_KNOWN_HOSTS_WITH_HOSTFILE
`_known_hosts_real' will add hosts from HOSTFILE (compgen -A hostname), unless
`COMP_KNOWN_HOSTS_WITH_HOSTFILE' is set to an empty value.

To run the unit tests:

   $ cd test && ./runUnit _known_hosts_real.exp
2009-08-12 22:20:56 +02:00
Freddy Vulto
57565c1ce2 Merge branch 'fvu' 2009-08-11 21:09:19 +02:00
Freddy Vulto
ce5384234c Fixed _known_hosts_real indentation 2009-08-11 21:08:25 +02:00
Freddy Vulto
466fc03e28 Add generate script for completion tests 2009-08-11 21:07:06 +02:00
Ville Skyttä
dcc30c71c2 Add *.ogv to xine-based players (Debian: #540033). 2009-08-05 23:47:15 +03:00
Freddy Vulto
90fc7be011 Reviewed tests v*, w*, x* & y*
Directories `test/_completion_to_review' &
'lib/completions_to_review' are now removed.
2009-08-01 09:35:24 +02:00
Freddy Vulto
85dd9cd64c Reviewed tests u* 2009-07-31 22:53:30 +02:00
Freddy Vulto
bcd33375ca Reviewed tests t* 2009-07-31 22:18:12 +02:00
Freddy Vulto
567eb37802 Reviewed tests s* 2009-07-31 12:20:51 +02:00
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
6d31b15011 Fix backwards compatibility calls to _known_hosts
This mimics the old behaviour where you could reuse `_known_hosts()' as
a helper function and pass it `-a' or `-c'.
NOTE: Using `_known_hosts' as a helper function and passing options to
`_known_hosts' is deprecated: Use `_known_hosts_real' instead.
2009-07-25 09:35:03 +02:00
Freddy Vulto
ddb0571227 Reviewed tests q* & r*
Added .swp (vim backup) files to .gitignore
2009-07-24 12:33:30 +02:00
Freddy Vulto
53b1c41c16 Reviewed tests p* 2009-07-24 11:58:02 +02:00
Freddy Vulto
3d7321bc68 Fix leaking $i from python completion 2009-07-24 11:52:58 +02:00
Freddy Vulto
285136a8df Reviewed tests o* 2009-07-24 11:20:38 +02:00
Freddy Vulto
890cadbc3a Reviewed tests n* 2009-07-24 11:16:03 +02:00
Freddy Vulto
0d443835c4 Reviewed tests m* 2009-07-24 09:55:54 +02:00