Skip to content

Instantly share code, notes, and snippets.

@mccutchen
Last active December 18, 2015 15:39
Show Gist options
  • Save mccutchen/5805844 to your computer and use it in GitHub Desktop.
Save mccutchen/5805844 to your computer and use it in GitHub Desktop.
Provides a `pbcopy` command on a VM that allows me to easily copy stuff onto the (OS X) host's clipboard
#!/bin/sh
set -e
ssh mccutchen@$(remote_host) pbcopy
#!/bin/sh
set -e
[ -n "$SSH_CLIENT" ] && echo "$SSH_CLIENT" | awk '{print $1}' || echo "deckle.local"
@slinkp
Copy link

slinkp commented Jun 19, 2013

what's "deckle.local"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment