Skip to content

Instantly share code, notes, and snippets.

@makefu
makefu / clbin
Last active August 29, 2015 14:04 — forked from GermainZ/clbin
updated clbin, supports images through pipe and images without extension
#!/usr/bin/env bash
# Upload text/images to clbin.com from the command line
# License: ISC http://www.isc.org/downloads/software-support-policy/isc-license/
clip() {
if command -v xclip &> /dev/null; then
xclip -selection clip <<< "$@"
elif command -v xsel &> /dev/null; then
xsel -b -i <<< "$@"
fi
}