summaryrefslogtreecommitdiffhomepage
path: root/clip
blob: b70e7232435ec89fc20a8ac3ec8a131a11af4fce (plain)
1
2
3
4
5
6
7
#!/bin/bash

if [ -p /dev/stdin ]; then
	printf "%s" "$(cat)" | xclip -selection clipboard
else
	echo "Pipe data to this program to copy it into your clipboard"
fi