diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2011-06-08 21:57:54 +0300 |
---|---|---|
committer | Ville Skyttä <ville.skytta@iki.fi> | 2011-06-08 21:57:54 +0300 |
commit | 0a3029ac4967fdcec473ae9558b50d3702870cf2 (patch) | |
tree | 9bdcba82b48db584a01f393a12829995b47bcde5 /completions/lrzip | |
parent | c28c06baef74f84021977b984ebfba8b217ed338 (diff) | |
download | bash-completion-0a3029ac4967fdcec473ae9558b50d3702870cf2.tar.gz |
lrzip, lzop, xz: Complete option arguments before options.
Diffstat (limited to 'completions/lrzip')
-rw-r--r-- | completions/lrzip | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/completions/lrzip b/completions/lrzip index eb9d0f3b..897f80e3 100644 --- a/completions/lrzip +++ b/completions/lrzip @@ -7,11 +7,6 @@ _lrzip() local cur prev words cword _init_completion || return - if [[ "$cur" == -* && $prev != -N ]]; then - COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) ) - return 0 - fi - local xspec="*.lrz" case $prev in @@ -45,6 +40,11 @@ _lrzip() _expand || return 0 + if [[ "$cur" == -* ]]; then + COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) ) + return 0 + fi + local IFS=$'\n' compopt -o filenames COMPREPLY=( $( compgen -f -X "$xspec" -- "$cur" ) \ |