diff options
author | Sorin Ionescu <sorin.ionescu@gmail.com> | 2011-02-03 22:46:52 -0500 |
---|---|---|
committer | Sorin Ionescu <sorin.ionescu@gmail.com> | 2011-06-01 20:33:16 -0400 |
commit | 1db6575f14d07b9ed3b0ce530837a8a0713b69d0 (patch) | |
tree | bb8fb4b1b6b626c0c816e301e19cebbf8a629fc8 /plugins/extract/_extract | |
parent | 3bb21afa88f136c18073808852118dedd7e21fbf (diff) | |
download | zsh-1db6575f14d07b9ed3b0ce530837a8a0713b69d0.tar.gz zsh-1db6575f14d07b9ed3b0ce530837a8a0713b69d0.tar.bz2 zsh-1db6575f14d07b9ed3b0ce530837a8a0713b69d0.zip |
Added extract plugin.
Diffstat (limited to 'plugins/extract/_extract')
-rw-r--r-- | plugins/extract/_extract | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/extract/_extract b/plugins/extract/_extract new file mode 100644 index 000000000..dca890954 --- /dev/null +++ b/plugins/extract/_extract @@ -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 + + |