summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Cornellà <marc@mcornella.com>2024-08-30 14:30:57 +0200
committerGitHub <noreply@github.com>2024-08-30 14:30:57 +0200
commitc68ff8aeedc2b779ae42d745457ecd443e22e212 (patch)
tree7fcfb3d74b907070c5829ffce3002df4b4091137
parentea8068aa3eeecc785249f2e83289e8a9294b9d6b (diff)
downloadzsh-c68ff8aeedc2b779ae42d745457ecd443e22e212.tar.gz
zsh-c68ff8aeedc2b779ae42d745457ecd443e22e212.tar.bz2
zsh-c68ff8aeedc2b779ae42d745457ecd443e22e212.zip
feat(extract): add support for .vsix files (VS Code extension) (#12643)
-rw-r--r--plugins/extract/README.md1
-rw-r--r--plugins/extract/extract.plugin.zsh2
2 files changed, 2 insertions, 1 deletions
diff --git a/plugins/extract/README.md b/plugins/extract/README.md
index c8d98b229..e0f571521 100644
--- a/plugins/extract/README.md
+++ b/plugins/extract/README.md
@@ -52,6 +52,7 @@ plugins=(... extract)
| `tlz` | Tarball with lzma compression |
| `txz` | Tarball with lzma2 compression |
| `tzst` | Tarball with zstd compression |
+| `vsix` | VS Code extension zip file |
| `war` | Web Application archive (Java-based) |
| `whl` | Python wheel file |
| `xpi` | Mozilla XPI module file |
diff --git a/plugins/extract/extract.plugin.zsh b/plugins/extract/extract.plugin.zsh
index e2b3111d5..f2eebf4d6 100644
--- a/plugins/extract/extract.plugin.zsh
+++ b/plugins/extract/extract.plugin.zsh
@@ -76,7 +76,7 @@ EOF
(*.lz4) lz4 -d "$full_path" ;;
(*.lzma) unlzma "$full_path" ;;
(*.z) uncompress "$full_path" ;;
- (*.zip|*.war|*.jar|*.ear|*.sublime-package|*.ipa|*.ipsw|*.xpi|*.apk|*.aar|*.whl) unzip "$full_path" ;;
+ (*.zip|*.war|*.jar|*.ear|*.sublime-package|*.ipa|*.ipsw|*.xpi|*.apk|*.aar|*.whl|*.vsix) unzip "$full_path" ;;
(*.rar) unrar x -ad "$full_path" ;;
(*.rpm)
rpm2cpio "$full_path" | cpio --quiet -id ;;