]> git.rmz.io Git - dotfiles.git/blobdiff - zsh/plugins/extract/_extract
merge oh-my-zsh into subdir
[dotfiles.git] / zsh / plugins / extract / _extract
diff --git a/zsh/plugins/extract/_extract b/zsh/plugins/extract/_extract
new file mode 100644 (file)
index 0000000..dca8909
--- /dev/null
@@ -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
+
+