summaryrefslogtreecommitdiff
path: root/oh-my-zsh/plugins/extract/_extract
diff options
context:
space:
mode:
authorAditya <bluenerd@protonmail.com>2023-02-27 20:04:56 +0530
committerAditya <bluenerd@protonmail.com>2023-02-27 20:04:56 +0530
commitedc449275b6c04445f58b108ca0937a87c1e8430 (patch)
tree9fd484d58145b616f29a78857cc0b1c8b1c18f05 /oh-my-zsh/plugins/extract/_extract
parent6f5424ca96c4221ef433f545642669e9c104d0ed (diff)
add zsh
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..27b099c
--- /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|cab|cpio|deb|ear|gz|ipa|ipsw|jar|lrz|lz4|lzma|rar|rpm|sublime-package|tar|tar.bz2|tar.gz|tar.lrz|tar.lz|tar.lz4|tar.xz|tar.zma|tar.zst|tbz|tbz2|tgz|tlz|txz|tzst|war|whl|xpi|xz|zip|zst)(-.)'" \
+ && return 0