Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
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
0b506fea
Unverified
Commit
0b506fea
authored
Jun 09, 2021
by
Xeonacid
Committed by
Marc Cornellà
Aug 14, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(extract): add cpio support
parent
59a9b453
Changes
3
Hide 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 @
0b506fea
...
@@ -22,6 +22,7 @@ plugins=(... extract)
...
@@ -22,6 +22,7 @@ plugins=(... extract)
|
`aar`
| Android library file |
|
`aar`
| Android library file |
|
`bz2`
| Bzip2 file |
|
`bz2`
| Bzip2 file |
|
`cab`
| Microsoft cabinet archive |
|
`cab`
| Microsoft cabinet archive |
|
`cpio`
| Cpio archive |
|
`deb`
| Debian package |
|
`deb`
| Debian package |
|
`ear`
| Enterprise Application aRchive |
|
`ear`
| Enterprise Application aRchive |
|
`gz`
| Gzip file |
|
`gz`
| Gzip file |
...
...
plugins/extract/_extract
View file @
0b506fea
...
@@ -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|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)(-.)'" \
&& return 0
&& return 0
plugins/extract/extract.plugin.zsh
View file @
0b506fea
...
@@ -70,6 +70,7 @@ extract() {
...
@@ -70,6 +70,7 @@ extract() {
;;
;;
(
*
.zst
)
unzstd
"
$1
"
;;
(
*
.zst
)
unzstd
"
$1
"
;;
(
*
.cab
)
cabextract
-d
"
$extract_dir
"
"
$1
"
;;
(
*
.cab
)
cabextract
-d
"
$extract_dir
"
"
$1
"
;;
(
*
.cpio
)
cpio
-idmvF
"
$1
"
;;
(
*
)
(
*
)
echo
"extract: '
$1
' cannot be extracted"
>
&2
echo
"extract: '
$1
' 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