Skip to content

Instantly share code, notes, and snippets.

@logikal
Created September 12, 2013 18:27
Show Gist options
  • Select an option

  • Save logikal/6541846 to your computer and use it in GitHub Desktop.

Select an option

Save logikal/6541846 to your computer and use it in GitHub Desktop.
#!/bin/sh
while true; do
if test -n "`tmux showb 2> /dev/null`"; then
tmux saveb -|pbcopy && tmux deleteb
fi
sleep 0.5
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment