11 Commits

Author SHA1 Message Date
Ville Skyttä
c2d30fb8aa smartctl: The short alternative for --tolerance is -T, not -t. 2011-04-27 18:37:22 +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ä
f48d6fb10d Use {x..y} brace expansion instead of `seq', loops, or long literal sequences. 2011-04-26 00:15:03 +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ä
aa411dd30b Drop no longer needed "type compopt" checks. 2011-04-21 12:35:24 +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ä
94c51fc36e Coding style consistency tweaks. 2011-04-04 23:48:22 +03:00
Ville Skyttä
5c48e85a86 smartctl completion improvements. 2011-02-18 22:09:05 +02:00
Guillaume Rousse
cb7fc2f7c4 rename 'contrib' directory to 'completions' 2010-09-12 16:42:21 +02:00