imgurs/README.md

72 lines
1.8 KiB
Markdown
Raw Permalink Normal View History

2022-06-12 15:28:25 +00:00
[crates-io]: https://img.shields.io/badge/crates.io-fc8d62?style=for-the-badge&labelColor=555555&logo=rust
[docs-rs]: https://img.shields.io/badge/docs.rs-66c2a5?style=for-the-badge&labelColor=555555&logo=docs.rs
2022-01-26 18:22:15 +00:00
# Imgurs - CLI and Library for Imgur API
2022-06-12 15:28:25 +00:00
[![crates-io]](https://crates.io/crates/imgurs)
[![docs-rs]](https://docs.rs/imgurs)
2022-05-18 18:16:13 +00:00
2022-01-26 18:22:15 +00:00
## Screenshots
2022-05-18 17:48:39 +00:00
![](https://i.imgur.com/MG35kvf.png)
2022-01-26 18:22:15 +00:00
2022-05-18 17:48:39 +00:00
![](https://i.imgur.com/TSxBrhO.png)
2022-01-26 18:22:15 +00:00
## Shell completions
Here are some examples of usage
```bash
# For bash
2022-01-26 18:24:37 +00:00
imgurs completions bash > ~/.local/share/bash-completion/completions/imgurs
2022-01-26 18:22:15 +00:00
# For zsh
imgurs completions zsh > /usr/local/share/zsh/site-functions/_imgurs
# For fish
imgurs completions fish > ~/.config/fish/completions/imgurs.fish
```
2022-03-02 21:16:44 +00:00
## Man page
Generate manpage
imgurs manpage | gzip > /usr/share/man/man1/imgurs.1.gz
2022-02-27 10:39:02 +00:00
## Dependencies
- support clipboard on Linux
- **xsel**
- **xclip** - alternative to **xsel**
- **termux-api** - on **Termux**
2022-02-27 10:39:02 +00:00
- **libnotify** - support notification on Linux
2022-01-26 18:22:15 +00:00
## How to install Imgurs CLI?
### **Linux**
Download imgurs-linux from [the releases page](https://github.com/MedzikUser/imgurs/releases/latest) and run
chmod +x imgurs-linux
./imgurs-linux
#### **Arch Linux**
2022-02-12 22:24:20 +00:00
Using yay ([AUR](https://aur.archlinux.org/packages/imgurs))
yay -S imgurs
2022-03-02 21:16:44 +00:00
or can add [this repo](https://github.com/archlinux-pkg/packages) and run
2022-01-26 18:22:15 +00:00
sudo pacman -Sy imgurs
### **OSX**
Download imgurs-darwin from [the releases page](https://github.com/MedzikUser/imgurs/releases/latest) and run
chmod +x imgurs-darwin
./imgurs-darwin
### **Windows**
Download imgurs-windows.exe from [the releases page](https://github.com/MedzikUser/imgurs/releases/latest) and run
imgurs-windows.exe
### **Compile with Cargo**
Make sure you have a recent version of Rust. Then you can run
2022-12-11 10:05:51 +00:00
cargo install imgurs-cli