#!/bin/zsh

if [[ -t 0 ]]; then
	xclip -out
else
	cat
fi | ssh michael@spot ~/bin/xpaste-server | xclip -in
xclip -out
echo
