Added archive listing to extract plugin.

This commit is contained in:
Sorin Ionescu 2011-07-28 18:06:47 -04:00
commit 49c5517d1b
2 changed files with 55 additions and 4 deletions

View file

@ -0,0 +1,6 @@
#compdef ls-archive
#autoload
_arguments \
'(-v --verbose)'{-v,--remove}'[Verbose archive listing.]' \
"*::archive file:_files -g '(#i)*.(tar|tgz|tbz|tbz2|txz|tlz|gz|bz2|xz|lzma|Z|zip|rar|7z)(-.)'" && return 0