avatar

升級到 macOS Sierra (10.12) 之後 tmux 的問題

tmux 跟 MacOS 好像是犯衝一樣,幾乎每次升級之後都會遇到一些問題,稍微作個紀錄。

Problems copying text on Mac OS Sierra · Issue #543 · tmux/tmux{' '} https://t.co/Dxw0oHjuBF # 各種災情0rz{' '} #tmux

— ping 8.8.8.8 (@ferrari_tw){' '} September 28, 2016

macos sierra: [warn]: kq_init: detected broken kqueue; not using.: File exists · tmux/tmux{' '} https://t.co/5EJSAMX3lB # tmux 也是每升必炸

— ping 8.8.8.8 (@ferrari_tw){' '} September 28, 2016

目前有遇到兩個問題

  1. clipboard 失效
  2. 會噴 [warn]: kq_init: detected broken kqueue; not using.: File exists 錯誤訊息

請參閱上面兩個連結,然後記得先裝一下 reattach-to-user-namespace,然後補上修正就可以了。

bashrc

export EVENT_NOKQUEUE=1

tmux.conf & vimrc

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

//vimrc
set clipboard=unnamed

powered by WebMention.io

You can skeet this post or discuss it on BlueSky, the comments will show up here.
0Likes0Replies0Mentions

Be the first one to share this article!