A better command line clipboard
cargo install clipboard-cli
# Copy file to clipbard
cb package.json
# Pipe to clipboard
echo 'Hello World!' | cb
git diff | cb
# Read clipboard contents
cb | vim -
# Search clipboard contents
cb | grep hello
# List clipboard history
cb list
# View previous clipboard
cb peek 1
cb p 1
clipboard | pbcopy/pbpaste | xclip | clip | |
---|---|---|---|---|
Single Command | ✅ | ❌ | ✅ | ✅ |
Cross Platform | ✅ | ❌ (macOS only) | ❌ (linux only) | ❌ (windows only) |
Simple API | ✅ | ✅ | ❌ | ✅ |
History Peak | ✅ | ❌ | ❌ | ❌ |