File tree Expand file tree Collapse file tree 1 file changed +60
-0
lines changed
Expand file tree Collapse file tree 1 file changed +60
-0
lines changed Original file line number Diff line number Diff line change 11# Tmux Yank
2+
3+ Enables copying to system clipboard in Tmux. Works on Linux and OS X.
4+
5+ Copy mode mappings:
6+ - ` y ` - copy selection to system clipboard
7+ - ` C-y ` - "put" selection to the command line
8+ - ` M-y ` (Alt + y) - performs both of the above: copy to system clipboard and
9+ put to command line
10+
11+ ### Requirements
12+
13+ #### OS X
14+
15+ - [ reattach-to-user-namespace] ( https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard ) <br />
16+ If you already don't have this installed, then:
17+ ` $ brew install reattach-to-user-namespace ` .
18+
19+ #### Linux
20+
21+ - ` xclip ` command<br />
22+ You most likely already have ` xclip ` , but if not install with:
23+ - Debian / Ubuntu: ` $ sudo apt-get install xclip `
24+ - Red hat / CentOS: ` $ yum install xclip `
25+
26+ ### Installation with [ Tmux Plugin Manager] ( https://github.com/bruno-/tpm ) (recommended)
27+
28+ Add plugin to the list of TPM plugins in ` .tmux.conf ` :
29+
30+ set -g @tpm_plugins " \
31+ bruno-/tpm \
32+ bruno-/tmux_yank \
33+ "
34+
35+ Hit ` prefix + I ` to fetch the plugin and source it. You should now be able to
36+ use the plugin.
37+
38+ ### Manual Installation
39+
40+ Clone the repo:
41+
42+ $ git clone https://github.com/bruno-/tmux_yank ~/clone/path
43+
44+ Add this line to the bottom of ` .tmux.conf ` :
45+
46+ run-shell ~/clone/path/yank.tmux
47+
48+ Reload TMUX environment:
49+
50+ # type this in terminal
51+ $ tmux source-file ~/.tmux.conf
52+
53+ You should now be able to use the plugin.
54+
55+ ### Other Tmux goodies
56+
57+ Tmux yank works well with [ tmux copycat] ( https://github.com/bruno-/tmux_copycat ) .
58+
59+ ### License
60+
61+ [ MIT] ( LICENSE.md )
You can’t perform that action at this time.
0 commit comments