Last built 7 months ago using go version go1.7.1 linux/amd64 and 80 seconds of time
redpaste is a small utility to improve my work with a remote server I’m working on permanentely. On the remote server I’m working with a tmux session all the time but quite often I need to copy something from my terminal and paste it to the browser.
As long as it’s just a few lines its fine to just resize the pane (ctrl+b, z) and then mark it, copy it using the copy function of my system and paste it to the browser. But sometimes there are several hundres of lines to copy. Now the fuckup begins: Scrolling in tmux buffer, selecting a part of the whole, copy it, scroll again, select another part, repeat…
To work around this I got me
redpaste which just takes stuff from
stdin and stores it to a Redis server. On my local computer I can fetch the data to the clipboard and paste it at once.
redpaste --create-configto write a default configuration
echo "hi" | redpaste setand
redpaste get, this should work as expected
Add this sniplet to your
bind C-y run "tmux save-buffer - | redpaste set"
Just execute this command:
redpaste get | pbcopy