aboutsummaryrefslogtreecommitdiff
path: root/.oh-my-zsh/plugins/extract/_extract
diff options
context:
space:
mode:
Diffstat (limited to '.oh-my-zsh/plugins/extract/_extract')
-rw-r--r--.oh-my-zsh/plugins/extract/_extract7
1 files changed, 7 insertions, 0 deletions
diff --git a/.oh-my-zsh/plugins/extract/_extract b/.oh-my-zsh/plugins/extract/_extract
new file mode 100644
index 0000000..33d49fc
--- /dev/null
+++ b/.oh-my-zsh/plugins/extract/_extract
@@ -0,0 +1,7 @@
+#compdef extract
+#autoload
+
+_arguments \
+ '(-r --remove)'{-r,--remove}'[Remove archive.]' \
+ "*::archive file:_files -g '(#i)*.(7z|Z|apk|aar|bz2|deb|gz|ipsw|jar|lzma|rar|sublime-package|tar|tar.bz2|tar.gz|tar.xz|tar.zma|tbz|tbz2|tgz|tlz|txz|war|whl|xpi|xz|zip)(-.)'" \
+ && return 0