I'm on the Mac and I'm trying to do this in my
bind -t vi-copy 'y' copy-selection ; run-shell 'tmux show-buffer | curl -d @- localhost:5482'
I want copy and paste to work, but I did it by running a server locally that pipes the contents of a post to pbcopy. It works when I do
echo "a new paste!" | curl -d @- localhost:5482
If I just
bind y run-shell 'tmux show-buffer | curl -d @- localhost:5482' Then that works great, but in my first example, the curl is never executed. Any ideas on how to run two commands in succession like this?
The key to me is a single key bind executes two separate tmux actions.