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
9b91e825
Unverified
Commit
9b91e825
authored
Feb 05, 2023
by
david
Committed by
GitHub
Feb 05, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(extract): add `zpaq` support (#11478)
parent
f8bf8f00
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
1 deletion
+3
-1
README.md
plugins/extract/README.md
+1
-0
_extract
plugins/extract/_extract
+1
-1
extract.plugin.zsh
plugins/extract/extract.plugin.zsh
+1
-0
No files found.
plugins/extract/README.md
View file @
9b91e825
...
@@ -55,6 +55,7 @@ plugins=(... extract)
...
@@ -55,6 +55,7 @@ plugins=(... extract)
|
`xz`
| LZMA2 archive |
|
`xz`
| LZMA2 archive |
|
`zip`
| Zip archive |
|
`zip`
| Zip archive |
|
`zst`
| Zstandard file (zstd) |
|
`zst`
| Zstandard file (zstd) |
|
`zpaq`
| Zpaq file |
See
[
list of archive formats
](
https://en.wikipedia.org/wiki/List_of_archive_formats
)
for
See
[
list of archive formats
](
https://en.wikipedia.org/wiki/List_of_archive_formats
)
for
more information regarding archive formats.
more information regarding archive formats.
plugins/extract/_extract
View file @
9b91e825
...
@@ -3,5 +3,5 @@
...
@@ -3,5 +3,5 @@
_arguments \
_arguments \
'(-r --remove)'{-r,--remove}'[Remove archive.]' \
'(-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)(-.)'" \
"*::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
|zpaq
)(-.)'" \
&& return 0
&& return 0
plugins/extract/extract.plugin.zsh
View file @
9b91e825
...
@@ -73,6 +73,7 @@ EOF
...
@@ -73,6 +73,7 @@ EOF
(
*
.zst
)
unzstd
"
$file
"
;;
(
*
.zst
)
unzstd
"
$file
"
;;
(
*
.cab
)
cabextract
-d
"
$extract_dir
"
"
$file
"
;;
(
*
.cab
)
cabextract
-d
"
$extract_dir
"
"
$file
"
;;
(
*
.cpio
)
cpio
-idmvF
"
$file
"
;;
(
*
.cpio
)
cpio
-idmvF
"
$file
"
;;
(
*
.zpaq
)
zpaq x
"
$file
"
;;
(
*
)
(
*
)
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