2829 Commits

Author SHA1 Message Date
Ville Skyttä
10f6eb8ee2 Use _init_completion() in completions/g*. 2011-04-20 17:02:27 +03:00
Ville Skyttä
06cf9c2a85 Use _init_completion() in completions/f*. 2011-04-20 16:56:50 +03:00
Ville Skyttä
ca6f748f98 Use _init_completion() in completions/e*. 2011-04-20 16:51:42 +03:00
Ville Skyttä
4bc5f90b3e Use _init_completion() in completions/d*. 2011-04-20 16:49:57 +03:00
Ville Skyttä
2738468dde Replace actual sysconfdir in bash_completion on install (Alioth: #313081). 2011-04-20 15:19:06 +03:00
Ville Skyttä
4c9789605f Use _init_completion() in completions/c*. 2011-04-20 14:42:30 +03:00
Ville Skyttä
007f7f5b01 Don't leak local $args. 2011-04-20 14:33:51 +03:00
Ville Skyttä
5e343c89fb Use _init_completion() in completions/b*. 2011-04-20 14:22:23 +03:00
Ville Skyttä
faf8ad159e Use _init_completion() in completions/a*. 2011-04-20 14:18:27 +03:00
Ville Skyttä
ab29cef65a Use _init_completion() in completions/_*. 2011-04-20 14:02:21 +03:00
Ville Skyttä
955219bf69 Use _init_completion() in bash_completion. 2011-04-20 13:14:04 +03:00
Ville Skyttä
32dbe76784 Add _init_completion() for common completion initialization and generic redirection handling. 2011-04-20 13:11:09 +03:00
Ville Skyttä
6fbd0cc50e Install xzdec completion even if xz or pxz are not available. 2011-04-19 23:37:54 +03:00
Ville Skyttä
a47aff8481 Fix local variable leaks from bluez completions. 2011-04-17 13:44:06 +03:00
Ville Skyttä
f1b4f1b982 Parse help only when needed. 2011-04-16 20:42:43 +03:00
Ville Skyttä
00bcf408a3 Remove stale comment. 2011-04-16 16:19:44 +03:00
Ted Pavlic
2eb713ff76 Add *.dbj to (la)tex filename completions (RedHat: #678122). 2011-04-15 23:47:22 +03:00
Ville Skyttä
1ffb918b4e Support tildes when recursively sourcing muttrc files (Debian: #615134). 2011-04-14 22:17:29 +03:00
Ville Skyttä
f0a9128649 Don't install completions for init.d backup files. 2011-04-12 23:48:14 +03:00
David Paleino
4ad538ba1a Fix __get_cword_at_cursor_by_ref: check for $index when completing with a cword+1 argument already present (Debian: #622383) 2011-04-12 22:06:12 +02:00
Ville Skyttä
7c34b56267 Try both full path and basename completions for sudo etc (Alioth: #313065). 2011-04-12 20:28:08 +03:00
Ville Skyttä
770bcdf71d Install full path /etc/rc.d/init.d/* completions. 2011-04-12 20:13:30 +03:00
Ville Skyttä
c42aa0b424 Install only full path (no basename) completions for /etc/init.d/*. 2011-04-12 20:12:32 +03:00
David Paleino
dcf09d3c98 Also filed on LP 2011-04-12 12:54:04 +02:00
Scott Bronson
f1b9580b35 Override MANPAGER when generating perldoc completions (RedHat: #689180). 2011-04-09 12:15:40 +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ä
e31f021470 Replace some uname -s checks with $OSTYPE ones. 2011-04-06 20:28:19 +03:00
Ville Skyttä
f0eac44ac9 (testsuite) Test java -classpath in addition to -cp. 2011-04-06 18:51:22 +03:00
Ville Skyttä
c691c6e998 Add CHANGES entry and test case for previous java completion change. 2011-04-06 18:49:06 +03:00
Mattias Ulbrich
823f634551 repaired sourcepath and classpath lookup
did not work correctly if multiple paths were given (using :)
now takes the corrected information
2011-04-06 18:46:28 +03:00
Ville Skyttä
d2707cf368 Try /usr/sbin before /sbin in have().
The former tends to have more executables so this should save some
stat() calls in some setups.
2011-04-05 22:44:04 +03:00
Ville Skyttä
4e4e300ef1 Add code style settings block. 2011-04-05 22:43:29 +03:00
Ville Skyttä
9af6f3504e Abort completion file loading earlier if required commands are not available.
Cuts ~10% from bash completion load time on two different systems I
just tested.
2011-04-05 00:37:55 +03:00
Ville Skyttä
a7c3da6322 Take advantage of short-circuit eval of [[ ]]. 2011-04-04 23:57:07 +03:00
Ville Skyttä
0c08c5a009 Drop unnecessary $USERLAND check. 2011-04-04 23:52:56 +03:00
Ville Skyttä
94c51fc36e Coding style consistency tweaks. 2011-04-04 23:48:22 +03:00
Ville Skyttä
f7c93600a6 Avoid some have() calls.
Single file existence etc checks are cheaper than full $PATH lookups.
2011-04-04 22:12:40 +03:00
Ville Skyttä
c65949385a Drop unnecessary subshell. 2011-04-04 22:09:30 +03:00
Ville Skyttä
4d3e9d092c Add $_backup_glob for matching various backup files and reuse it.
Compared to the previous embedded/duplicated globs, this one
additionally treats *.orig and *.rej as backup files.
2011-04-01 20:22:10 +03:00
Ville Skyttä
ec25abac89 (testsuite) Make ri basic test case more likely to work.
Plain "ri " completion returns 3729 entries on my box which is way
more than fits into the expect buffer we have in effect.
2011-04-01 20:09:42 +03:00
Matej Cepl
e10848b7e5 Complete oo{writer,impress,calc,draw} on LibreOffice FlatXML extensions (RedHat: #692548). 2011-03-31 22:46:58 +03:00
Ville Skyttä
61b91cb41b Trivial code cleanup. 2011-03-29 23:29:51 +03:00
Ville Skyttä
c398b1c56f (testsuite) Fix get_hosts option docs. 2011-03-29 23:27:51 +03:00
Igor Murzov
10bd7d3d41 Correct options for pkgtool
Took options from pkgtool script itself. They are wrong in man page
2011-03-28 20:28:59 +04:00
Igor Murzov
e0e63f2518 Add --terse option to installpkg (added in pkgtools-13.37) 2011-03-28 20:24:00 +04:00
Igor Murzov
497ed2ce99 Replace hyphens with underscores in function names
It should fix:
/etc/bash_completion.d/slapt: line 69: `_slapt-get': not a valid identifier
Reported on LQ:
http://www.linuxquestions.org/questions/slackware-14/bash-completion-1-3-noarch-1-causes-xorg-failure-863157/
2011-03-28 20:20:02 +04:00
Freddy Vulto
68e9a8e6eb (testsuite) Add -unsorted option to _get_hosts()
_known_hosts_real tests were failing after commit 81794a9:

   FAIL: Hosts should be put in COMPREPLY
   FAIL: Hosts should have username prefix and colon suffix

This is because tcl's get_hosts() is now doing a unique sort, but bash
_known_hosts_real() IS returning duplicates relying on bash's compgen/complete
to remove the duplicates).  Fixed by calling _get_hosts -unsorted.
2011-03-27 23:12:14 +02:00
Freddy Vulto
7cd17ada11 Fix __reassemble_comp_words_by_ref() unquoted pattern removal
Commit 8227e76 was failing on these `chown' tests in bash-4.1:

    FAIL: Check preserve special chars in funky\ user:Debia<TAB>
    FAIL: Check preserve special chars in funky\.user:Debia<TAB>
    FAIL: Check preserve special chars in fu\ nky.user:Debia<TAB>
    FAIL: Check preserve special chars in f\ o\ o\.\bar:Debia<TAB>
    FAIL: Check preserve special chars in foo\_b\ a\.r\ :Debia<TAB>

because a removal pattern is expanded:

    $ a=\\b
    $ w=\\
    $ echo ${a#$w}    # Doesn't work
    \b
    $ echo ${a#"$w"}  # Ok
    b
2011-03-27 22:08:55 +02:00
David Paleino
8c3a0e94d1 Make $cur local 2011-03-27 13:58:59 +02:00
David Paleino
42b107bcfc Fix broken _allowed_groups usage (shadow and coreutils) 2011-03-27 12:40:44 +02:00