Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- lockfile="/tmp/.tmux.lock"
- touch "${lockfile}"
- tmux choose-buffer "paste-buffer -b '%%' ; run-shell \"rm ${lockfile}\""
- while [ -f "${lockfile}" ]
- do
- sleep 1
- done
- touch "/tmp/.paste.done"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement