summaryrefslogtreecommitdiff
path: root/plugins/extract/_extract
diff options
context:
space:
mode:
authorRobby Russell <robby@planetargon.com>2011-07-23 09:33:42 -0700
committerRobby Russell <robby@planetargon.com>2011-07-23 09:33:42 -0700
commit46440e7198905659108ce7598d880f92361d434f (patch)
tree5fe00d25aa7b7ab2c4556a07b1f51c2a4d81c617 /plugins/extract/_extract
parent250bee9cda1436c9f9ae900eaf540c82642c9031 (diff)
parenta5c383258b760ad1c34d550edb86d7d63e8f5877 (diff)
downloadzsh-46440e7198905659108ce7598d880f92361d434f.tar.gz
zsh-46440e7198905659108ce7598d880f92361d434f.tar.bz2
zsh-46440e7198905659108ce7598d880f92361d434f.zip
Merge pull request #208 from sorin-ionescu/plugin-extract
extract plugin
Diffstat (limited to 'plugins/extract/_extract')
-rw-r--r--plugins/extract/_extract8
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
+
+