mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-07-03 05:31:17 +02:00
add plugin 'universalarchive()' to conveniently compress files
This commit is contained in:
parent
2642f0a8b4
commit
1c389ea4e5
3 changed files with 115 additions and 0 deletions
7
plugins/ua/_universalarchive
Normal file
7
plugins/ua/_universalarchive
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
#compdef universalarchive
|
||||
#autoload
|
||||
|
||||
_arguments \
|
||||
'(-r --remove)'{-r,--remove}'[Remove archive.]' \
|
||||
"*::archive file:_files -g '(#i)*.(7z|Z|bz2|gz|lzma|rar|tar|tar.bz2|tar.gz|tar.xz|tar.zma|tbz|tbz2|tgz|tlz|txz|xz|zip)(-.)'" \
|
||||
&& return 0
|
||||
Loading…
Add table
Add a link
Reference in a new issue