I want to use a clipboard manager in
tmux. It is the
CopyQ, but it does not matter, I guess. In
~/.tmux.conf I set following binding:
set-window-option -g mode-keys vi bind C-y run 'out=`tmux save-buffer - ` && copyq add "$out"'
When I press this shortcut
PREFIX, Ctrl-y the copying to
CopyQ fails and the following message arises
'out=`tmux save-buffer - ` && copyq add "$out"' returned 127
However, If I try to enter these commands manually then they works and text copyies from
tmux buffer to
copyq as required
$ out=`tmux save-buffer - ` $ copyq add "$out"
And I need to say that following command works fine and print a text from
tmux buffer to screen:
bind C-w run 'out=`tmux save-buffer - ` && echo "$out"'
How I can make original binding work?