2703 Commits

Author SHA1 Message Date
Ville Skyttä
d4e177a6ab Simplify $UNAME checks. 2011-04-25 12:54:55 +03:00
Ville Skyttä
60b2106b78 Activate killall completion on Darwin (Alioth: #312350). 2011-04-25 12:48:25 +03:00
Ville Skyttä
095b5a02d2 Fix --foo[=bar] parsing in _parse_help(). 2011-04-25 11:43:57 +03:00
Ville Skyttä
6e809d032c Remove = from COMP_WORDBREAKS when using _split_longopt().
Without this, it does not do anything useful in bash >= 4.0.
2011-04-25 00:09:50 +03:00
Ville Skyttä
a0afe0959b Try to figure out file/dir argument types from --foo=BAR in _longopt(). 2011-04-24 20:17:34 +03:00
Ville Skyttä
e104424ff2 Turn on -o filenames in _tilde() only when it produces completions. 2011-04-24 20:09:02 +03:00
Ville Skyttä
0042c06204 Code cleanups. 2011-04-24 20:05:19 +03:00
Ville Skyttä
a87086b7d4 Turn off default compopt when completing dirs in _longopt().
Otherwise -o default kicks in in cases where we have no dir
completions and ends up completing files.
2011-04-24 19:54:50 +03:00
Ville Skyttä
1b85a1bf58 Treat arguments starting with . or ~ as paths where that check is done. 2011-04-24 19:35:42 +03:00
Ville Skyttä
f8d8444667 Use "declare -F" instead of "type" to check for function existence.
Avoids some stat() calls when it doesn't exist.
2011-04-24 18:55:04 +03:00
Ville Skyttä
ea90dc1a86 Use _split_longopt() in rsync. 2011-04-24 18:50:40 +03:00
Ville Skyttä
92f790d345 rsync completion improvements.
Turn off nospace where appropriate, add some file and dir option completions.
2011-04-22 11:59:48 +03:00
David Paleino
5c13db5094 Remove --unpack-level from lintian options (Debian: #623680) 2011-04-22 09:54:05 +02:00
Ville Skyttä
448106b098 nospace usage cleanups. 2011-04-21 12:53:32 +03:00
Ville Skyttä
aa411dd30b Drop no longer needed "type compopt" checks. 2011-04-21 12:35:24 +03:00
Ville Skyttä
9f45e81e65 Drop no longer needed _compopt_o_filenames().
Use compopt -o filenames directly instead.
2011-04-21 12:33:05 +03:00
Ville Skyttä
6589a0d61b Drop support for bash < 4.1, clean up no longer needed low hanging cruft. 2011-04-21 12:20:59 +03:00
Ville Skyttä
59e189e636 Remaining _init_completion() related changes missed in the first round. 2011-04-21 11:16:11 +03:00
Ville Skyttä
8048917968 Use _init_completion() in completions/[q-z]*. 2011-04-21 11:15:01 +03:00
Ville Skyttä
e3ca91b986 Use _init_completion() in completions/p*. 2011-04-20 23:13:29 +03:00
Ville Skyttä
aef53c1160 Use _init_completion() in completions/o*. 2011-04-20 22:56:30 +03:00
Ville Skyttä
66dd0b35a2 Use _init_completion() in completions/n*. 2011-04-20 22:51:41 +03:00
Ville Skyttä
0cb6263424 Use _init_completion() in completions/m*. 2011-04-20 22:42:55 +03:00
Ville Skyttä
69ecdc49d5 Use _init_completion() in completions/l*. 2011-04-20 22:22:51 +03:00
Ville Skyttä
3842fc5472 Use _init_completion() in completions/k*. 2011-04-20 22:12:53 +03:00
Ville Skyttä
7a4ef9e4a9 Use _init_completion() in completions/j*. 2011-04-20 22:11:12 +03:00
Ville Skyttä
6ea5b13d4d Localize $classpath in _java_find_sourcepath so completions don't have to. 2011-04-20 22:06:56 +03:00
Ville Skyttä
22c8330099 Use _init_completion() in completions/i*. 2011-04-20 17:13:48 +03:00
Ville Skyttä
d82571a47c Use _init_completion() in completions/h*. 2011-04-20 17:04:20 +03:00
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