Skip to content

Commit 02d0228

Browse files
committed
latest way to fix copy/paste issue in mac osx
1 parent f7d5431 commit 02d0228

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

hackintosh-notes.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@ credit to https://gist.github.com/kevinelliott/e12aa642a8388baf2499
44

55
* fix copy/paste issue - https://github.com/tmux/tmux/issues/543
66
* upgrade tmux to 2.6 or greater
7-
* `brew install reattach-to-user-namespace`
87
* tmux.conf
98
* `setw -g mode-keys vi`
10-
* `bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"`
11-
* `bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"`
9+
* `bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "pbcopy"`
10+
* `bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "pbcopy"`
1211
* vimrc (for neovim)
1312
* `set clipboard=unnamed`
1413
# CLEANUP START

tmux.conf

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ set -g default-terminal "xterm-256color"
3434

3535
# fix for copy/paste issue in mac osx
3636
setw -g mode-keys vi
37-
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
38-
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
37+
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "pbcopy"
38+
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "pbcopy"

0 commit comments

Comments
 (0)