- brew install reattach-to-user-namespace
- .vimrc 添加 set clipboard=unnamed
- .tmux.conf 添加 bind -t vi-copy y copy-pipe 'pbcopy'
Have fun :)
Have fun :)
1
immjun Sep 24, 2016
macOS 了可以直接用 iTerm2 了吧
|
2
tracyone Sep 24, 2016 via iPhone
Nothing in * register
|
3
jkeylu Sep 24, 2016
.tmux.conf 我添加的是
set-option -g default-command "command -v reattach-to-user-namespace >/dev/null 2>&1 && reattach-to-user-namespace -l zsh" |
7
iCyMind Sep 25, 2016
https://github.com/tmux-plugins/tmux-yank/blob/master/README.md#os-x-requirements
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. tmux 有自己的插件管理系统,一口气装了好几个插件。这个插件是对 tmux 复制模式的增强。 它的 doc 里有提到, reattach-to-user-namespace 已经不需要了。我在 el capitan 下,没装 re-to-u-names ,复制粘贴也没问题 |