summaryrefslogtreecommitdiff
path: root/completions/lrzip
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2011-06-08 21:57:54 +0300
committerVille Skyttä <ville.skytta@iki.fi>2011-06-08 21:57:54 +0300
commit0a3029ac4967fdcec473ae9558b50d3702870cf2 (patch)
tree9bdcba82b48db584a01f393a12829995b47bcde5 /completions/lrzip
parentc28c06baef74f84021977b984ebfba8b217ed338 (diff)
downloadbash-completion-0a3029ac4967fdcec473ae9558b50d3702870cf2.tar.gz
lrzip, lzop, xz: Complete option arguments before options.
Diffstat (limited to 'completions/lrzip')
-rw-r--r--completions/lrzip10
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" ) \