604 Commits

Author SHA1 Message Date
Igor Murzov
86be92a17e avctrl, dnsspoof: Add "avctrl" and "dnsspoof" to completions/Makefile.am
Somehow they were abandoned in 156656c16d4302d059221a06eb7c1bd460e41fe9.
Also resort bashcomp_DATA alphabetically.
2011-12-19 03:55:15 +04:00
Igor Murzov
5dba39cbd3 htop: New completoin. 2011-12-18 21:59:15 +04:00
Igor Murzov
1f15ab7eae Merge branch 'mount'
* mount:
  testsuite: Add basic tests for umount.
  umount: Real fix for completion of relative paths.
  umount: Half-fix for completion of relative paths.
  mount: Don't suggest short options.
  mount, umount: Add linux-specific completions.
2011-12-15 19:49:34 +04:00
Igor Murzov
2c4d20a02e cppcheck: Several ids separated by commas can be given for --enable=. 2011-12-14 19:23:55 +04:00
Igor Murzov
be085fbe23 id: Add "id" to completions/Makefile.am.
Somehow "id" was abandoned in 156656c16d4302d059221a06eb7c1bd460e41fe9.
2011-12-14 19:06:44 +04:00
Igor Murzov
3f74a9f918 cppcheck: Add new options introduced in cppcheck-1.52. 2011-12-14 18:56:41 +04:00
Ville Skyttä
f09ced610d lzip: New completion. 2011-12-10 18:27:21 +02:00
Ville Skyttä
da4956af1f curl: Add bunch of new option argument completions. 2011-12-05 00:32:24 +02:00
Ville Skyttä
3b7f785cb5 lrzip: -T no longer takes an argument since version 0.570. 2011-12-04 12:48:16 +02:00
Igor Murzov
54bcdff3cf umount: Real fix for completion of relative paths. 2011-12-04 05:34:25 +04:00
Igor Murzov
7a1a3da08a umount: Half-fix for completion of relative paths. 2011-12-04 02:41:46 +04:00
Jan Kratochvil
86d0395fc5 rpm: Treat -r as --root (RedHat: #759224). 2011-12-01 21:19:54 +02:00
Ville Skyttä
6a713c316f _muttconffiles: Use printf instead of echo (Alioth: #312163). 2011-11-27 00:26:00 +02:00
Ville Skyttä
afb2fdd010 export: Fix many use cases, add option completion. 2011-11-26 23:32:30 +02:00
Ville Skyttä
56672db701 koji: New completion. 2011-11-26 17:45:47 +02:00
Ville Skyttä
dc545f22f2 lintian: Use <<< instead of echo and a pipe (Alioth: #312163). 2011-11-26 16:08:29 +02:00
Ville Skyttä
6c0337926c lintian: Remove spurious echo. 2011-11-26 15:51:12 +02:00
Ville Skyttä
a958ccde50 perldoc: Add some option arg completions, use _parse_help. 2011-11-25 20:00:23 +02:00
Ville Skyttä
bcf41c74c2 declare, typeset: Use _parse_usage. 2011-11-25 19:59:35 +02:00
Ville Skyttä
03463a157f sqlite3: Use _parse_help. 2011-11-25 19:59:08 +02:00
Ville Skyttä
eab195c440 iperf: New completion. 2011-11-25 08:45:59 +02:00
Igor Murzov
f271d7e8db nethogs: New completion. 2011-11-25 04:38:50 +03:00
Igor Murzov
9a72c2f3e0 mount: Don't suggest short options. 2011-11-24 05:06:59 +03:00
Igor Murzov
2e859f1a6c Cleanups: Be consistent, use $( foo ) instead of $(foo).
This partially reverts f0283e1c1b64202bb1adb9f44eac6fdfd80edece
2011-11-20 23:46:06 +03:00
Ville Skyttä
2932491a2c dict: Speed up word completion with common use cases and large word lists.
/usr/share/dict/words has 479829 entries on my box which is too much
for practical compgen -W usage, narrow it down with grep in common use
cases.
2011-11-20 20:01:13 +02:00
Ville Skyttä
a8218ee1c9 valgrind --tool: Use compgen -W instead of embedding $cur in the sed script.
$cur may contain characters that break the script, for example "/".
2011-11-20 19:43:46 +02:00
Igor Murzov
811666369e valgrind: Parse option arguments that contain dashes.
Fixes parsing lines like "--smc-check=none|stack|all|all-non-file".
2011-11-20 21:00:10 +03:00
Igor Murzov
d26ede488c valgrind: More generic tools detection.
Libdir is still hardcoded though.
2011-11-20 20:58:08 +03:00
Ville Skyttä
ed17034974 ccache: New completion. 2011-11-20 17:55:39 +02:00
Igor Murzov
f0283e1c1b Cleanups: Make code more compact.
Drop useless spaces, backslashes, return codes, unused arguments etc.
2011-11-20 17:10:58 +03:00
Igor Murzov
db8d3eeeeb mount, umount: Add linux-specific completions.
This linux-specific completion won't parse /etc/fstab as a lot of people
including myself find it useless. And there is no reliable way to guess
what user wants to mount. Some examples of what is ok for mount:

 $ mount /home
 $ mount /dev/sda1 /home
 $ mount file.iso /media/iso -o loop
 $ mount LABEL=mydisk /media/disk

It is more sane to provide just filenames completion for mount.
2011-11-20 01:26:51 +03:00
Ville Skyttä
5dc833dbbc valgrind: Parse some generic option arguments from --help output. 2011-11-17 22:55:36 +02:00
Ville Skyttä
834379ef63 valgrind: New completion. 2011-11-17 18:00:41 +02:00
Igor Murzov
43e8e2b504 wine: Complete all files after an .exe (Alioth #313131) 2011-11-17 18:35:49 +03:00
Igor Murzov
82784121d8 upgradepkg: Support oldpackage%newpackage notation. 2011-11-17 04:02:35 +03:00
Igor Murzov
9ab064fb17 pidof: Don't check OS type (Alioth #311403)
Also drop non-existent option arguments completion.

Reviewed-by: Ville Skyttä <ville.skytta@iki.fi>
2011-11-16 01:56:07 +03:00
Ville Skyttä
b9069afa55 rpm: Add --delsign completion, don't suggest --resign (identical to --addsign). 2011-11-12 23:15:13 +02:00
Ville Skyttä
c73cf422bd make -j: Complete up to number of CPUs * 2. 2011-11-11 21:01:06 +02:00
Igor Murzov
6f58a69991 removepkg: Make it possible to complete filenames.
Reported-by: disturbed1
Tested-by: Sergey V <sftp.mtuci@gmail.com>
2011-11-11 02:46:23 +03:00
Ville Skyttä
3b8ef29ef3 Cleanups: Use [[ instead of [. 2011-11-09 23:28:11 +02:00
Ville Skyttä
1d48f79b9c Cleanups: use usual globs instead of substring matches or substitutions. 2011-11-09 22:46:21 +02:00
Ville Skyttä
d54db3507d make: Add -j/--jobs completion. 2011-11-09 18:36:08 +02:00
Ville Skyttä
0202ac4e2a cppcheck -j: Use _ncpus. 2011-11-09 18:35:37 +02:00
Ville Skyttä
22dff29dc4 _npus: Split out of lrzip for general use. 2011-11-09 18:35:13 +02:00
Ville Skyttä
3f851722d7 _services: Split xinetd service completion into _xinetd_services.
Only Mandriva's service operates on xinetd services, chkconfig does it
everywhere.
2011-11-09 18:14:23 +02:00
Ville Skyttä
e4ff8d98a3 chkconfig: Wrap long lines. 2011-11-09 18:06:59 +02:00
Ville Skyttä
bb36bfd019 bashcomp_DATA: service was merged to bash_completion. 2011-11-09 18:00:42 +02:00
Igor Murzov
e4cdcca08e Merge completions/service into the bash_completion script.
If completion for a basename foo is already installed, the default
completion loader no longer fires for /etc/init.d/foo -- the basename
completion is invoked directly instead. This means that we need to load
completions for /etc/init.d and friends eagerly at bash_completion load :(
2011-11-09 05:21:53 +03:00
Igor Murzov
fbbd476df0 Add and use _sysvdirs() function that sets correct SysV init directory.
This function allows distros to fine tune their init directory location,
as simple checking for directories presence is not always sufficient.
2011-11-09 05:09:37 +03:00
Igor Murzov
fff412b2f2 Revert "Another stab at making service completion work on Slackware."
This reverts commit 1a01e54d856fe2d9496cfaf6d9df8b75d87a9b52.
See http://thread.gmane.org/gmane.comp.shells.bash.completion.scm/2278
2011-11-09 04:49:37 +03:00