The following command works well in the command line and copies a string to
two X-window targets:
echo "Hello world" | tee >(xclip -i -selection primary) >(xclip -i
-selection clipboard) >/dev/null
The following two tmux binding commands work well too:
bind-key -n -t emacs-copy M-w copy-pipe "xclip -i -selection primary"
bind-key -n -t emacs-copy M-w copy-pipe "xclip -i -selection clipboard"
But the following tmux binding command which is supposed to copy a
selection to two targets doesn't:
bind-key -n -t emacs-copy M-w copy-pipe "tee >(xclip -i -selection primary)
>(xclip -i -selection clipboard) >/dev/null"
Why?
More generally, is there a better way to copy a string to two X window
targets?
James
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users