Skip to content

Commit 89ed2b2

Browse files
author
Bruno Sutic
committed
Add copy to command line feature to readme
1 parent 7cbde7b commit 89ed2b2

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,17 @@
22

33
Enables copying to system clipboard in Tmux. Works on Linux and OS X.
44

5-
Tmux **copy mode** mappings:
5+
Key bindings:
6+
- `prefix + y` - copies text from the command line to clipboard. It does **not**
7+
mess up the command you're writing.<br/>
8+
This feature works for any shell or repl where `readline` is enabled.
9+
To test this check if `Ctrl-a` binding takes you to the start of the line.
10+
This should work for all popular shells/repls, but please try out it for your
11+
specific scenario.<br/>
12+
Tested and working for: `bash`, `zsh` (with `bindkey -e`), `tcsh`, `irb`,
13+
`pry`, `node`, `psql`, `python`, `php -a`, `coffee`
14+
15+
**copy mode** bindings:
616
- `y` - copy selection to system clipboard
717
- `Ctrl-y` - "put" selection - equivalent to copying a selection, and pasting it to the command line
818
- `Alt-y` - performs both of the above: copy to system clipboard and

0 commit comments

Comments
 (0)