Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aubreypwd/zsh-plugin-download
An easy function to use aira2c to download a file from the internet with connection support.
https://github.com/aubreypwd/zsh-plugin-download
Last synced: about 2 months ago
JSON representation
An easy function to use aira2c to download a file from the internet with connection support.
- Host: GitHub
- URL: https://github.com/aubreypwd/zsh-plugin-download
- Owner: aubreypwd
- License: mit
- Created: 2020-10-01T20:40:55.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-08-11T19:48:09.000Z (almost 2 years ago)
- Last Synced: 2024-01-23T17:52:46.447Z (4 months ago)
- Language: Shell
- Homepage:
- Size: 6.84 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-zsh-plugins - download - Helper to download files with `aria2c`. (Plugins / ZSH on Windows)
- fucking-awesome-zsh-plugins - download - Helper to download files with `aria2c`. (Plugins / ZSH on Windows)
README
# `download`
Function to download files via URL using `aria2c`.
## Usage
```bash
download
```E.g.:
```bash
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:
```bash
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](https://github.com/zsh-users/antigen):
```bash
antigen bundle aubreypwd/[email protected]
```## Development
Install the package on `master`:
```bash
antigen bundle ssh://[email protected]/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