Skip to content

aubreypwd/zsh-plugin-download

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

download

Function to download files via URL using aria2c.

Usage

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.

Requires

  • aria2c*

If you have https://github.com/aubreypwd/zsh-plugin-require and homebrew installed, we'll handle installing dependancies automatically.

Install

Using antigen:

antigen bundle aubreypwd/zsh-plugin-download@1.0.0

Development

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

Changelog beyond these were moved to Github Releases.

1.0.1

  • Do not open via open when done
  • Requirement command tests are now in function call

1.0.0

  • First version

About

An easy function to use aira2c to download a file from the internet with connection support.

Resources

License

Stars

Watchers

Forks

Languages