Added extract plugin.

This commit is contained in:
Sorin Ionescu
2011-02-03 22:46:52 -05:00
parent 3bb21afa88
commit 1db6575f14
4 changed files with 91 additions and 36 deletions

8
plugins/extract/_extract Normal file
View File

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