Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Oh My Zsh
Commits
586ca169
Commit
586ca169
authored
Jan 15, 2019
by
Ing. Jan Kaláb
Committed by
Marc Cornellà
Jan 15, 2019
Browse files
extract: add AAR Android archive support (#7511)
parent
026e4e49
Changes
3
Hide whitespace changes
Inline
Side-by-side
plugins/extract/README.md
View file @
586ca169
...
@@ -19,6 +19,7 @@ plugins=(... extract)
...
@@ -19,6 +19,7 @@ plugins=(... extract)
|
`7z`
| 7zip file |
|
`7z`
| 7zip file |
|
`Z`
| Z archive (LZW) |
|
`Z`
| Z archive (LZW) |
|
`apk`
| Android app file |
|
`apk`
| Android app file |
|
`aar`
| Android library file |
|
`bz2`
| Bzip2 file |
|
`bz2`
| Bzip2 file |
|
`deb`
| Debian package |
|
`deb`
| Debian package |
|
`gz`
| Gzip file |
|
`gz`
| Gzip file |
...
...
plugins/extract/_extract
View file @
586ca169
...
@@ -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|bz2|deb|gz|ipsw|jar|lzma|rar|sublime-package|tar|tar.bz2|tar.gz|tar.xz|tar.zma|tbz|tbz2|tgz|tlz|txz|war|whl|xpi|xz|zip)(-.)'" \
"*::archive file:_files -g '(#i)*.(7z|Z|apk|
aar|
bz2|deb|gz|ipsw|jar|lzma|rar|sublime-package|tar|tar.bz2|tar.gz|tar.xz|tar.zma|tbz|tbz2|tgz|tlz|txz|war|whl|xpi|xz|zip)(-.)'" \
&& return 0
&& return 0
plugins/extract/extract.plugin.zsh
View file @
586ca169
...
@@ -46,7 +46,7 @@ extract() {
...
@@ -46,7 +46,7 @@ extract() {
(
*
.xz
)
unxz
"
$1
"
;;
(
*
.xz
)
unxz
"
$1
"
;;
(
*
.lzma
)
unlzma
"
$1
"
;;
(
*
.lzma
)
unlzma
"
$1
"
;;
(
*
.z
)
uncompress
"
$1
"
;;
(
*
.z
)
uncompress
"
$1
"
;;
(
*
.zip|
*
.war|
*
.jar|
*
.sublime-package|
*
.ipsw|
*
.xpi|
*
.apk|
*
.whl
)
unzip
"
$1
"
-d
$extract_dir
;;
(
*
.zip|
*
.war|
*
.jar|
*
.sublime-package|
*
.ipsw|
*
.xpi|
*
.apk|
*
.
aar|
*
.
whl
)
unzip
"
$1
"
-d
$extract_dir
;;
(
*
.rar
)
unrar x
-ad
"
$1
"
;;
(
*
.rar
)
unrar x
-ad
"
$1
"
;;
(
*
.7z
)
7za x
"
$1
"
;;
(
*
.7z
)
7za x
"
$1
"
;;
(
*
.deb
)
(
*
.deb
)
...
...
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