LoginSignup
1
1

More than 5 years have passed since last update.

tmux 2.7でエスケープシーケンスによるウィンドウ名の変更を有効にする

Posted at

tmux 2.7ではallow-renameオプションがデフォルトでoffに変更になりました1
このオプションはエスケープシーケンスによるウィンドウ名の変更2を許可するものです。

oh-my-zshなどはprecmd_functionspreexec_functionsを利用して、自動的にウィンドウ名をカレントパスや実行プログラム名などに変更していて3、ウィンドウ名をステータスラインに表示させておくと非常に便利です。
tmux 2.7に更新したところ、ウインドウ名の変更がうまく動いていなかったのですが、allow-renameがデフォルトでoffになっていたのが原因でした。

設定ファイルでallow-renameonにすることで解決しました。

tmux.conf
setw -g allow-rename on
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1