irevived1 / vim-tmux-config

2 stars 5 forks source link

MacOS Sierra register fix #2

Open cngonzalez opened 7 years ago

cngonzalez commented 7 years ago

As a heads-up to those who update to Sierra, the upgrade breaks the current tmux config's ability to yank to the system clipboard (it throws the error that there's nothing in the register).

I did the following to fix it: 1) Install reattach to namespace via Homebrew (brew install reattach-to-user-namespace)

2) Ensure the following is set in .tmux.conf:

set -g default-shell $SHELL 
set -g default-command "reattach-to-user-namespace -l ${SHELL}"

Apologies for not submitting the fix as a PR, but I wasn't sure if this change would break anything for those on El Capitan.

aehmt commented 7 years ago

Hey, I think this works but you need to RESTART your computer.