Skip to content

Instantly share code, notes, and snippets.

@bloudermilk
Created November 5, 2012 21:59
Show Gist options
  • Save bloudermilk/4020666 to your computer and use it in GitHub Desktop.
Save bloudermilk/4020666 to your computer and use it in GitHub Desktop.
A program for syncing the tmux clipboard with OS X's
#!/bin/sh
# Stolen from Joshua Clayton of thoughtbot:
# http://robots.thoughtbot.com/post/19398560514/how-to-copy-and-paste-with-tmux-on-mac-os-x
PATH=/usr/local/bin:$PATH
while true; do
if test -n "`tmux showb 2> /dev/null`"; then
tmux saveb - | pbcopy && tmux deleteb
fi
sleep 0.2
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment