mirror of
https://github.com/MedzikUser/imgurs
synced 2024-08-15 00:03:19 +00:00
70 lines
1.7 KiB
Markdown
70 lines
1.7 KiB
Markdown
# Imgurs - CLI and Library for Imgur API
|
|
|
|
![](https://img.shields.io/github/license/MedzikUser/imgurs)
|
|
![](https://img.shields.io/tokei/lines/github/MedzikUser/imgurs)
|
|
![](https://img.shields.io/github/languages/code-size/MedzikUser/imgurs)
|
|
|
|
## Screenshots
|
|
|
|
![](https://i.imgur.com/MG35kvf.png)
|
|
|
|
![](https://i.imgur.com/TSxBrhO.png)
|
|
|
|
## Shell completions
|
|
|
|
Here are some examples of usage
|
|
```bash
|
|
# For bash
|
|
imgurs completions bash > ~/.local/share/bash-completion/completions/imgurs
|
|
# For zsh
|
|
imgurs completions zsh > /usr/local/share/zsh/site-functions/_imgurs
|
|
# For fish
|
|
imgurs completions fish > ~/.config/fish/completions/imgurs.fish
|
|
```
|
|
|
|
## Man page
|
|
|
|
Generate manpage
|
|
|
|
imgurs manpage | gzip > /usr/share/man/man1/imgurs.1.gz
|
|
|
|
## Dependencies
|
|
- support clipboard on Linux
|
|
- **xsel**
|
|
- **xclip** - alternative to **xsel**
|
|
- **termux-api** - on **Termux**
|
|
- **libnotify** - support notification on Linux
|
|
|
|
## 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**
|
|
Using yay ([AUR](https://aur.archlinux.org/packages/imgurs))
|
|
|
|
yay -S imgurs
|
|
|
|
or can add [this repo](https://github.com/archlinux-pkg/packages) and run
|
|
|
|
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
|
|
|
|
cargo install imgurs
|