[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 2.1-21-g42196ef

Ville Skyttä ville.skytta at iki.fi
Fri Jun 14 21:36:06 UTC 2013


The following commit has been merged in the master branch:
commit 42196ef7fc1f91c51a471a1b50d2c1a48d77560f
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Sat Jun 15 00:35:33 2013 +0300

    file-roller: Reuse unzip's xspec.

diff --git a/completions/file-roller b/completions/file-roller
index c05565d..f1d8279 100644
--- a/completions/file-roller
+++ b/completions/file-roller
@@ -5,7 +5,7 @@ _file_roller()
     local cur prev words cword split
     _init_completion -s || return
 
-    local exts='@(7z|ace|alz|ar|arj|[bglx]z|bz2|tb?(z)2|cab|cb[rz]|iso?(9660)|Z|t[abglx]z|cpio|deb|[ejrw]ar|exe|?(g)tar|gem|lh[az]|lzh|?(t)lrz|lzma|lzo|wim|swm|rpm|sit|zip|zoo)'
+    local exts='@(7z|ace|alz|ar|arj|[bglx]z|bz2|tb?(z)2|cab|cb[rz]|iso?(9660)|Z|t[abglx]z|cpio|deb|rar|?(g)tar|gem|lh[az]|lzh|?(t)lrz|lzma|lzo|wim|swm|rpm|sit|zoo)'
 
     case $prev in
         -'?'|--help|--help-all|--help-gtk|--help-sm-client)
@@ -16,6 +16,7 @@ _file_roller()
             return
             ;;
         -a|--add-to)
+            _filedir_xspec unzip
             _filedir "$exts"
             return
             ;;
@@ -34,6 +35,7 @@ _file_roller()
         return
     fi
 
+    _filedir_xspec unzip
     _filedir "$exts"
 } &&
 complete -F _file_roller file-roller

-- 
bash-completion



More information about the Bash-completion-commits mailing list