mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-05 01:46:46 +01:00
Added extract plugin.
This commit is contained in:
parent
3bb21afa88
commit
1db6575f14
4 changed files with 91 additions and 36 deletions
8
plugins/extract/_extract
Normal file
8
plugins/extract/_extract
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#compdef extract
|
||||
#autoload
|
||||
|
||||
_arguments \
|
||||
'(-r --remove)'{-r,--remove}'[Remove archive.]' \
|
||||
"*::archive file:_files -g '(#i)*.(tar|tgz|tbz|tbz2|txz|tlz|gz|bz2|xz|lzma|Z|zip|rar|7z|deb)(-.)'" && return 0
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue