1
0
Fork 0
mirror of synced 2024-11-26 17:25:35 -05:00
zimfw/modules/archive/functions
Eric Nielsen 1c23ea1604 [archive] Support archive of multiple files
not just one directory.

Also use shorter versions of the `tar` parameters, since we were using a
mixture of the short and long ones among `archive` and `unarchive`.

About not using `$` inside `(( ))`, this is what the the section
ARITHMETIC EVALUATION in zshmisc(1) says:

> Named parameters and subscripted arrays can be referenced by name
> within an arithmetic expression without using the parameter expansion
> syntax.

And according to http://www.bash2zsh.com/zsh_refcard/refcard.pdf:

> `var` (does not require `$` in front unless some substitution e.g.
> `${#var}` is needed, `$` is error if `var` is to be modified)

Closes #308
2018-11-14 20:32:37 -05:00
..
_unarchive [archive] Add unarchive completion 2018-02-08 10:59:43 -05:00
archive [archive] Support archive of multiple files 2018-11-14 20:32:37 -05:00
unarchive [archive] Support archive of multiple files 2018-11-14 20:32:37 -05:00