Function to download files via URL using aria2c
.
download <URL> <CONNECTIONS:16>
E.g.:
download "https://github.com/aubreypwd/zsh-plugin-download/archive/master.zip"
Will download the master.zip
file to your current working directory with aria2c
. If you supply CONNECTIONS, e.g:
download "https://github.com/aubreypwd/zsh-plugin-download/archive/master.zip" 12
...it will download that file using 12
connections. The default connections is 16
.
aria2c
*
If you have https://github.com/aubreypwd/zsh-plugin-require and homebrew installed, we'll handle installing dependancies automatically.
Using antigen:
antigen bundle aubreypwd/zsh-plugin-download@1.0.0
Install the package on master
:
antigen bundle ssh://git@github.com/aubreypwd/zsh-plugin-download
...and contribute upstream by working in $HOME/.antigen/bundles/aubreypwd/zsh-plugin-download
.
Changelog beyond these were moved to Github Releases.
- Do not open via
open
when done - Requirement command tests are now in function call
- First version