e50dd3417c8b9e072593b6c14473e1360bd88b02
- Author
- Marc Cornellà <marc@mcornella.com>
- Committer
- GitHub <noreply@github.com>
- Date
Message
Diff
This diff is truncated to protect this page.
1diff --git a/plugins/extract/_extract b/plugins/extract/_extract
2index 56b17058fe5d96108b354acc5ce23c0545c1efab..0b43e86bcc072727bca3c73b29a1e715d4bcfc60 100644
3--- a/plugins/extract/_extract
4+++ b/plugins/extract/_extract
5@@ -1,7 +1,54 @@
6 #compdef extract
7 #autoload
8
9+local -a exts=(
10+ 7z
11+ aar
12+ apk
13+ bz2
14+ cab
15+ cpio
16+ crx
17+ deb
18+ ear
19+ gz
20+ ipa
21+ ipsw
22+ jar
23+ lrz
24+ lz4
25+ lzma
26+ obscpio
27+ rar
28+ rpm
29+ sublime-package
30+ tar
31+ tar.bz2
32+ tar.gz
33+ tar.lrz
34+ tar.lz
35+ tar.lz4
36+ tar.xz
37+ tar.zma
38+ tar.zst
39+ tbz
40+ tbz2
41+ tgz
42+ tlz
43+ txz
44+ tzst
45+ vsix
46+ war
47+ whl
48+ xpi
49+ xz
50+ Z
51+ zip
52+ zpaq
53+ zst
54+)
55+
56 _arguments \
57 '(-r --remove)'{-r,--remove}'[Remove archive.]' \
58diff --git a/plugins/extract/extract.plugin.zsh b/plugins/extract/extract.plugin.zsh
59index f2eebf4d6461d59e4dd2958b734e060c859ae520..aa3fd00e6e6ba668069bce5cdc1e1f43205d35fd 100644
60--- a/plugins/extract/extract.plugin.zsh
61+++ b/plugins/extract/extract.plugin.zsh
62@@ -76,7 +76,7 @@ EOF
63 (*.lz4) lz4 -d "$full_path" ;;
64 (*.lzma) unlzma "$full_path" ;;
65 (*.z) uncompress "$full_path" ;;
66- (*.zip|*.war|*.jar|*.ear|*.sublime-package|*.ipa|*.ipsw|*.xpi|*.apk|*.aar|*.whl|*.vsix) unzip "$full_path" ;;
67+ (*.zip|*.war|*.jar|*.ear|*.sublime-package|*.ipa|*.ipsw|*.xpi|*.apk|*.aar|*.whl|*.vsix|*.crx) unzip "$full_path" ;;
68 (*.rar) unrar x -ad "$full_path" ;;
69 (*.rpm)
70 rpm2cpio "$full_path" | cpio --quiet -id ;;