Skip to content

Commit 9781bf1

Browse files
author
Bruno Sutic
committed
Update readme
1 parent dc2e37e commit 9781bf1

File tree

1 file changed

+18
-23
lines changed

1 file changed

+18
-23
lines changed

README.md

Lines changed: 18 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ binding in copy mode. In `v2.0.0` this key binding was changed to `Y` (shift-y).
3030
#### OS X requirements
3131

3232
- [reattach-to-user-namespace](https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard)<br/>
33-
*Note*: Beginning with OSX Yosemite (10.10), `pbcopy` is reported to work correctly with `tmux`, so we believe `reattach-to-user-namespace` is not needed anymore. Please install it in case the plugin doesn't work for you.
33+
Install with brew `$ brew install reattach-to-user-namespace` or
34+
macports `$ sudo port install tmux-pasteboard`.
3435

35-
For previous OSX versions, you need to install it:
36-
`$ brew install reattach-to-user-namespace`.<br/>
37-
Alternatively, if you are using MacPorts, install via:<br/>
38-
`$ sudo port install tmux-pasteboard`
36+
*Note*: Beginning with OSX Yosemite (10.10), `pbcopy` is reported to work
37+
correctly with `tmux`, so we believe `reattach-to-user-namespace` is not
38+
needed anymore. Please install it in case the plugin doesn't work for you.
3939

4040
#### Linux requirements
4141

@@ -44,24 +44,6 @@ Alternatively, if you are using MacPorts, install via:<br/>
4444
- Debian / Ubuntu: `$ sudo apt-get install xclip` or `$ sudo apt-get install xsel`
4545
- Red hat / CentOS: `$ yum install xclip` or `$ yum install xsel`
4646

47-
### Copy command
48-
49-
**OS X**
50-
51-
Copying to clipboard is done using `pbcopy`.
52-
53-
**Linux**
54-
55-
Copying to clipboard is done using `xclip -selection clipboard` or `xsel --clipboard` command by default.
56-
57-
If copying is different on your system, and you need the command to be i.e.
58-
`xclip -selection primary` or `xsel -i --primary`, here's how to customize:
59-
60-
# in .tmux.conf
61-
set -g @yank_selection 'primary'
62-
63-
Warning: Use full names as option ('primary', 'secondary', 'clipboard')
64-
6547
### Notes
6648

6749
**Mouse Support**
@@ -75,6 +57,19 @@ Instead, press `y` before releasing mouse.
7557
# in .tmux.conf
7658
set -g @shell_mode 'vi'
7759

60+
**Linux clipboard**
61+
62+
Copying to clipboard is done using `xclip -selection clipboard` or
63+
`xsel --clipboard` command by default.
64+
65+
If copying is different on your system, and you need the command to be i.e.
66+
`xclip -selection primary` or `xsel -i --primary`, here's how to customize:
67+
68+
# in .tmux.conf
69+
set -g @yank_selection 'primary'
70+
71+
Use full names as option ('primary', 'secondary', 'clipboard')
72+
7873
### Installation with [Tmux Plugin Manager](https://github.com/tmux-plugins/tpm) (recommended)
7974

8075
Add plugin to the list of TPM plugins in `.tmux.conf`:

0 commit comments

Comments
 (0)