436 Commits

Author SHA1 Message Date
Freddy Vulto
6e7359f69c Improve _get_comp_words_by_ref()
Empty $cur with cmd = " | a " (| = cursor position)
(Alioth #313102)
2011-05-20 00:27:08 +02:00
Freddy Vulto
fc96a951b7 Fix error "bad array subscript"
Caused by _get_comp_words_by_ref() with cursor at position 0.
Patch by Igor Murzov (Debian: #559953)
2011-05-19 22:40:14 +02:00
Ville Skyttä
a36c1076fc Revert "New completion for phing (Elan Ruusamäe, Alioth: #312910)"
This reverts commit bf358666d2256213d59bd75c6194aaff41bc9893.

Will reuse the ant completion for phing instead.
2011-05-03 00:37:52 +03:00
David Paleino
bf358666d2 New completion for phing (Elan Ruusamäe, Alioth: #312910) 2011-05-02 17:22:35 +02:00
David Paleino
5961c3b8cd Layout change: everything is now in /usr/share/bash-completion/, rather than in /etc/. 2011-05-02 17:01:23 +02:00
David Paleino
b25abe601d ant: handle "extension-point" the same as "target" tag (Petr Kozelka, Alioth: #313105) 2011-05-02 16:30:51 +02:00
Ville Skyttä
3a39ac6676 chsh: Use _allowed_users instead of plain compgen -u. 2011-04-27 18:40:16 +03:00
Ville Skyttä
a098290816 pack200, unpack200: Use _split_longopt. 2011-04-27 18:38:37 +03:00
Ville Skyttä
5cd5993211 _parse_help: Change to output first long option, or first short if not found.
Makes things more consistent with the rest of our option offerings.
2011-04-27 18:36:52 +03:00
David Paleino
7b2c2ebf9b Complete filenames after commands in rrdtool (Debian: #577933) 2011-04-27 13:45:42 +02:00
Ville Skyttä
c5b771749b Add _terms() and screen -T completion. 2011-04-25 15:49:06 +03:00
Ville Skyttä
f5d49065d2 Expand tilde in mutt query command (Alioth: #312759). 2011-04-25 13:48:31 +03:00
Ville Skyttä
60b2106b78 Activate killall completion on Darwin (Alioth: #312350). 2011-04-25 12:48:25 +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ä
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ä
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ä
32dbe76784 Add _init_completion() for common completion initialization and generic redirection handling. 2011-04-20 13:11:09 +03:00
Ville Skyttä
a47aff8481 Fix local variable leaks from bluez completions. 2011-04-17 13:44:06 +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ä
c691c6e998 Add CHANGES entry and test case for previous java completion change. 2011-04-06 18:49:06 +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ä
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
Matej Cepl
e10848b7e5 Complete oo{writer,impress,calc,draw} on LibreOffice FlatXML extensions (RedHat: #692548). 2011-03-31 22:46:58 +03:00
David Paleino
42b107bcfc Fix broken _allowed_groups usage (shadow and coreutils) 2011-03-27 12:40:44 +02:00
Mattias Ulbrich
920b1f93b6 improved java completion
now suggests also package names
2011-03-24 20:44:10 +02:00
Freddy Vulto
8227e76e09 Improve __reassemble_comp_words_by_ref() (Alioth #313057)
Prohibit word creation of characters if they're excluded from
$COMP_WORDBREAKS.  For example, with ':' included in $COMP_WORDBREAKS,
'a b:' should split to 'b' and ':'.  With ':' excluded from
$COMP_WORDBREAKS, 'a b:' should split to 'b:', NOT 'b' and ':'.
2011-03-24 00:00:58 +01:00
Ville Skyttä
70a3b8a8b4 xz* option completion updates. 2011-03-21 19:45:08 +02:00
Ville Skyttä
03fee4b4d3 Apply xz completion to pxz too. 2011-03-21 19:44:17 +02:00
Ville Skyttä
91c13f0eed Fix completion of files inside *.tar.bz2 archives when [Ijy] is not given. 2011-03-20 17:12:52 +02:00
David Paleino
14fc9f2965 If _filedir 'ext' returns nothing, just fallback to generic file completion. Patch by Clint Byrum (Debian: #619014, LP: #533985) 2011-03-20 15:22:33 +01:00
Ville Skyttä
a6354b8107 Add reptyr completion. 2011-03-12 12:04:02 +02:00
Ville Skyttä
da2d63fb19 Get aspell --mode completions from 'aspell modes' output. 2011-03-03 23:24:21 +02:00
Guillaume Rousse
2e88c29991 Merge branch 'master' of git+ssh://git.debian.org/git/bash-completion/bash-completion 2011-02-23 21:39:30 +01:00
Guillaume Rousse
dac9622e90 add puppet completion 2011-02-23 21:14:35 +01:00
Ville Skyttä
5c48e85a86 smartctl completion improvements. 2011-02-18 22:09:05 +02:00
Ville Skyttä
6042cbe2f5 Split rpm and rpmbuild completions and improve them both.
The option sets are different, and rpm should not have been used to
build packages since rpm 4.0, and could not have been used for that
since rpm 4.1.
2011-02-10 23:51:26 +02:00
Ville Skyttä
4c1e0d5cf2 Drop rpm query support for rpm < 4.1. 2011-02-10 23:37:04 +02:00
Ville Skyttä
5792ac8760 Try harder to find the correct perl executable to run the perl helper with.
It is now run explicitly with *some* perl executable.
2011-02-10 21:57:38 +02:00