hidollara / dotfiles

2 stars 0 forks source link

.tmux.conf の見直し #5

Closed hidollara closed 1 year ago

hidollara commented 1 year ago

4 の対応の中で、 set -g allow-passthrough 1 を設定した方がよさそう?なんだけど、どういうオプションか分からないので調べる。

ついでに既に記憶が全くない今の .tmux.conf の設定の意図をまとめておく。

hidollara commented 1 year ago

allow-passthrough は tmux 3.3 以降でエスケープシーケンスをパススルーするために必要らしい。 手元の環境は tmux 3.2 なので入れると寧ろ不正なオプションとして怒られるけど、忘れないようにコメントアウトで残しておく

hidollara commented 1 year ago

default-terminal と terminal-overrides について。前に Base16 で色付けようとしたときにいろいろこねくり回した覚えがある。

https://www.pandanoir.info/entry/2019/11/02/202146 https://github.com/tmux/tmux/wiki/FAQ#i-dont-see-italics-or-italics-and-reverse-are-the-wrong-way-round

多分これがすべて。tmux-256color の方がよさそうなので切り替える(なぜ screen-256color を使っていたかは謎)。

hidollara commented 1 year ago

set-option => set bind-key => bind unbind-key => unbind

で代用できるらしい。多分昔の自分はこういうのは正式名でしょ!のノリで設定した気がするけど、普通にダルいのでショートハンド使う(公式でもショートハンド使ってるっぽいし)。