Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
b06663df
Commit
b06663df
authored
May 21, 2023
by
Marc Cornellà
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(extract): add support for `.zlib` and `.exe` files (#11085)
Fixes #11085
parent
3a01d7df
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
README.md
plugins/extract/README.md
+3
-0
extract.plugin.zsh
plugins/extract/extract.plugin.zsh
+2
-1
No files found.
plugins/extract/README.md
View file @
b06663df
...
@@ -25,6 +25,7 @@ plugins=(... extract)
...
@@ -25,6 +25,7 @@ plugins=(... extract)
|
`cpio`
| Cpio archive |
|
`cpio`
| Cpio archive |
|
`deb`
| Debian package |
|
`deb`
| Debian package |
|
`ear`
| Enterprise Application aRchive |
|
`ear`
| Enterprise Application aRchive |
|
`exe`
| Windows executable file |
|
`gz`
| Gzip file |
|
`gz`
| Gzip file |
|
`ipa`
| iOS app package |
|
`ipa`
| iOS app package |
|
`ipsw`
| iOS firmware file |
|
`ipsw`
| iOS firmware file |
...
@@ -52,9 +53,11 @@ plugins=(... extract)
...
@@ -52,9 +53,11 @@ plugins=(... extract)
|
`txz`
| Tarball with lzma2 compression |
|
`txz`
| Tarball with lzma2 compression |
|
`tzst`
| Tarball with zstd compression |
|
`tzst`
| Tarball with zstd compression |
|
`war`
| Web Application archive (Java-based) |
|
`war`
| Web Application archive (Java-based) |
|
`whl`
| Python wheel file |
|
`xpi`
| Mozilla XPI module file |
|
`xpi`
| Mozilla XPI module file |
|
`xz`
| LZMA2 archive |
|
`xz`
| LZMA2 archive |
|
`zip`
| Zip archive |
|
`zip`
| Zip archive |
|
`zlib`
| zlib archive |
|
`zst`
| Zstandard file (zstd) |
|
`zst`
| Zstandard file (zstd) |
|
`zpaq`
| Zpaq file |
|
`zpaq`
| Zpaq file |
...
...
plugins/extract/extract.plugin.zsh
View file @
b06663df
...
@@ -83,9 +83,10 @@ EOF
...
@@ -83,9 +83,10 @@ EOF
builtin cd
-q
../data
;
extract ../data.tar.
*
builtin cd
-q
../data
;
extract ../data.tar.
*
builtin cd
-q
..
;
command rm
*
.tar.
*
debian-binary
;;
builtin cd
-q
..
;
command rm
*
.tar.
*
debian-binary
;;
(
*
.zst
)
unzstd
"
$full_path
"
;;
(
*
.zst
)
unzstd
"
$full_path
"
;;
(
*
.cab
)
cabextract
"
$full_path
"
;;
(
*
.cab
|
*
.exe
)
cabextract
"
$full_path
"
;;
(
*
.cpio|
*
.obscpio
)
cpio
-idmvF
"
$full_path
"
;;
(
*
.cpio|
*
.obscpio
)
cpio
-idmvF
"
$full_path
"
;;
(
*
.zpaq
)
zpaq x
"
$full_path
"
;;
(
*
.zpaq
)
zpaq x
"
$full_path
"
;;
(
*
.zlib
)
zlib-flate
-uncompress
<
"
$full_path
"
>
"
${
file
:r
}
"
;;
(
*
)
(
*
)
echo
"extract: '
$file
' cannot be extracted"
>
&2
echo
"extract: '
$file
' cannot be extracted"
>
&2
success
=
1
;;
success
=
1
;;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment