Advertisement
Guest User

Untitled

a guest
Dec 19th, 2014
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.21 KB | None | 0 0
  1. #!/bin/bash
  2. lockfile="/tmp/.tmux.lock"
  3. touch "${lockfile}"
  4. tmux choose-buffer "paste-buffer -b '%%' ; run-shell \"rm ${lockfile}\""
  5. while [ -f "${lockfile}" ]
  6. do
  7.     sleep 1
  8. done
  9. touch "/tmp/.paste.done"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement