copy (to X clipboard) shortcut in .tmux.conf

view story

http://unix.stackexchange.com – In order to copy text to X clipboard in tmux, what I currently do is: go selection mode with prefix[ start selection with space (using mode-keys vi btw) select the text and press enter copy tmux buffer to X clipboard using prefixctrl+c (I have a mapping as bind C-c run "tmux show-buffer | xclip -selection clipboard -i" I'm trying to eliminate some of these steps by making a mapping for selection mode. I have tried: bind-key -t vi-copy C-c run "tmux show-buffer | xclip -selection clipboard -i" which gives me and error: .. usage: bind-key [-cnr] [-t key-table] key command [arguments] (HowTos)