Created
November 5, 2012 21:59
-
-
Save bloudermilk/4020666 to your computer and use it in GitHub Desktop.
A program for syncing the tmux clipboard with OS X's
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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