Ville Skyttä
08a4c0eff5
sysbench: Use _parse_help.
2011-05-04 22:51:02 +03:00
Ville Skyttä
c875723bef
Include trailing equals sign in options that take arguments that way.
...
This way it's clearer to users that an argument is expected. It's
likely that this commit does not catch all such cases, but it should
do it for most of the affected commands I have installed.
2011-05-02 11:45:55 +03:00
Ville Skyttä
a54857cd05
_init_completion: Add -s for splitting long options, use it in completions.
2011-05-02 00:04:26 +03:00
Ville Skyttä
c3bddc49e0
bzip2, gzip, python, sysbench: Quote command argument to _parse_help().
2011-04-27 23:17:51 +03:00
Ville Skyttä
48ffb0ac6d
No need to test for COMPREPLY count when toggling nospace.
...
It only takes effect if there's only one completion anyway.
2011-04-27 18:37:15 +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ä
448106b098
nospace usage cleanups.
2011-04-21 12:53:32 +03:00
Ville Skyttä
8048917968
Use _init_completion() in completions/[q-z]*.
2011-04-21 11:15:01 +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ä
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ä
344076f92c
Use numeric comparison operators when comparing numerically.
2011-02-10 23:55:16 +02:00
Ville Skyttä
9e87f134e4
Comment spelling fix.
2010-10-23 12:44:40 +03:00
Ville Skyttä
267fb3205d
Drop unused cword.
2010-10-05 23:55:30 +03:00
Ville Skyttä
77b78b3723
Add sysbench completion.
2010-10-05 23:40:44 +03:00