diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2011-04-25 23:44:08 +0300 |
---|---|---|
committer | Ville Skyttä <ville.skytta@iki.fi> | 2011-04-26 00:15:03 +0300 |
commit | f48d6fb10d13d7bdf28d76dab0d87e466d1c3571 (patch) | |
tree | 7ef24120ded851af2e06584d47470cb2182f4100 /completions/lrzip | |
parent | 976ba448251af67514af323be80fa938ffbe699d (diff) | |
download | bash-completion-f48d6fb10d13d7bdf28d76dab0d87e466d1c3571.tar.gz |
Use {x..y} brace expansion instead of `seq', loops, or long literal sequences.
Diffstat (limited to 'completions/lrzip')
-rw-r--r-- | completions/lrzip | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/completions/lrzip b/completions/lrzip index ffd95a76..77e42d07 100644 --- a/completions/lrzip +++ b/completions/lrzip @@ -31,17 +31,15 @@ _lrzip() return 0 ;; -L) - COMPREPLY=( $( compgen -W '1 2 3 4 5 6 7 8 9' -- "$cur" ) ) + COMPREPLY=( $( compgen -W '{1..9}' -- "$cur" ) ) return 0 ;; -T) - COMPREPLY=( $( compgen -W '1 2 3 4 5 6 7 8 9 10' -- "$cur" ) ) + COMPREPLY=( $( compgen -W '{1..10}' -- "$cur" ) ) return 0 ;; -N) - COMPREPLY=( $( compgen -W '-20 -19 -18 -17 -16 -15 -14 -13 -12 \ - -11 -10 -9 -8 -7 -6 -5 -4 -3 -2 -1 0 1 2 3 4 5 6 7 8 9 10 11 \ - 12 13 14 15 16 17 18 19' -- "$cur" ) ) + COMPREPLY=( $( compgen -W '{-20..19}' -- "$cur" ) ) return 0 ;; esac |