Send urls from CLI to shiori via API.
Shiori is a simple bookmarks manager written in the Go language.
- shiori server
- Linux or macOS
- Clone
git clone https://github.com/Coro365/add-shiori.git
- Rename config file
mv config_sample.rb config.rb
- Edit config
vi config.rb
- Install Xclip and Xsel (if use linux)
apt install xclip xsel
- Add these lines inside your .bashrc file and start a new terminal.
# Linux version of macOS pbcopy and pbpaste. alias pbcopy=’xsel — clipboard — input’ alias pbpaste=’xsel — clipboard — output’
- How to use pbcopy and pbpaste. If you’re here reading this, then… | by Jorge Yau | Medium
- Send URLs in ARGV
ruby add_shiori.rb [URL] [URL]...
- Send URLs in clipboard
ruby add_shiori.rb
MIT