1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2025-06-14 19:31:43 +00:00

Added extract plugin.

This commit is contained in:
Sorin Ionescu
2011-02-03 22:46:52 -05:00
parent 8d935eede9
commit 9ded21d21b
4 changed files with 84 additions and 36 deletions

6
plugins/extract/_extract Normal file
View File

@ -0,0 +1,6 @@
#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