Re: Tmux copy-pipe to multiple targets

2013-03-25 Thread Nicholas Marriott
Looks like you are using a bash extension and the copy-pipe command will be run with /bin/sh. Try doing copy-pipe "bash -c 'mycommand'" On Mon, Mar 25, 2013 at 02:35:37PM -0400, James Jong wrote: >The following command works well in the command line and copies a string >to two X-window t

Re: Tmux copy-pipe to multiple targets

2013-03-25 Thread James Jong
(I am resending the email with better formatting): 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

Tmux copy-pipe to multiple targets

2013-03-25 Thread James Jong
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 "xc