1
0
mirror of https://github.com/robbyrussell/oh-my-zsh.git synced 2025-12-08 00:10:41 +01:00

feat(transfer): allow encryption of uploads using GPG (#9983)

Co-authored-by: Marc Cornellà <hello@mcornella.com>
This commit is contained in:
Luiz
2021-12-29 06:32:29 -03:00
committed by GitHub
parent 5b2f99bcb7
commit 3bb23e8e31
2 changed files with 112 additions and 67 deletions

View File

@@ -2,23 +2,40 @@
[`transfer.sh`](https://transfer.sh) is an easy to use file sharing service from the command line
## Usage
To use it, add `transfer` to the plugins array in your zshrc file:
Add `transfer` to your plugins array in your zshrc file:
```zsh
plugins=(... transfer)
```
Then you can:
## Usage
- transfer a file:
- Transfer a file: `transfer file.txt`.
```zsh
transfer file.txt
```
- Transfer a whole directory (it will be automatically compressed): `transfer dir`.
- transfer a whole directory (it will be automatically compressed):
### Encryption / Decryption
```zsh
transfer directory/
```
- Encrypt and upload a file with symmetric cipher and create ASCII armored output:
```zsh
transfer file -ca
```
- Encrypt and upload directory with symmetric cipher and gpg output:
```zsh
transfer directory -ca
```
- Decrypt file:
```zsh
gpg -d file -ca
```
- Decrypt directory:
```zsh
gpg -d your_archive.tgz.gpg | tar xz
```