mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-22 04:51:12 +02:00
feat(extract): add option to extract to a specific directory in _extract
This commit is contained in:
parent
a5d42521f4
commit
0b899f137b
1 changed files with 1 additions and 0 deletions
|
|
@ -53,5 +53,6 @@ local -a exts=(
|
||||||
|
|
||||||
_arguments \
|
_arguments \
|
||||||
'(-r --remove)'{-r,--remove}'[Remove archive.]' \
|
'(-r --remove)'{-r,--remove}'[Remove archive.]' \
|
||||||
|
'(-t --to-directory)'{-t,--to-directory}'[Extract to a specific directory.]' \
|
||||||
"*::archive file:_files -g '(#i)*.(${(j:|:)exts})(-.)'" \
|
"*::archive file:_files -g '(#i)*.(${(j:|:)exts})(-.)'" \
|
||||||
&& return 0
|
&& return 0
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue