random/get-remote-tmp-clipboard

8 lines
272 B
Bash

#!/bin/bash
# This script should be used in conjunction with tmp-clipboard
# You need to pass a hostname to this script as an argument, and the script
# will pull the text saved by the remote machine's tmp-clipboard script
ssh $* 'cat /tmp/tmp-clipboard; >$_' | wl-copy