... | ... | @@ -64,6 +64,24 @@ If you have more than ten tabs or windows, the dashboard will open. If you have |
|
|
|
|
|
![image](uploads/ff170f69ff75978e475d7c162a8d1866/image.png)
|
|
|
|
|
|
## I want to see tmux window titles as tab/window titles in iTerm2
|
|
|
|
|
|
The way tmux uses window names and window titles is confusing and kind of an impedance mismatch for iTerm2. First, tmux makes a distinction between window *names* and window *titles*, which is surprising. The window *name* is its identifier for applying changes to the window via tmux commands. The window *title* is meant to be the human-readable name that's present in the user interface.
|
|
|
|
|
|
Prior to iTerm2 3.3.0, only the window *name* was ever used in the UI.
|
|
|
|
|
|
In iTerm2 3.3.0 and later, you can choose to show tmux window *titles* in native tab and window titles. Put this in your `~/.tmux.conf` file:
|
|
|
|
|
|
```
|
|
|
set-option -g set-titles on
|
|
|
```
|
|
|
|
|
|
Note that you might not want to do this on a slow network because the title must be polled periodically.
|
|
|
|
|
|
After changing the value of `set-titles` you must detach and reattach to tmux for the change to take effect, as it's only checked once by iTerm2 when tmux integration is begun.
|
|
|
|
|
|
The tmux option `set-titles-string` defines the contents of the title. See the tmux man page for more information on this.
|
|
|
|
|
|
## I want to do something dangerous
|
|
|
|
|
|
Turn on **Prefs > Advanced > Allow variable window sizes in tmux integration**. Ensure you have the most recent version of tmux installed. This is kinda half-baked at the moment, but it works well enough to be useful for some people. I expect to finish polishing it up some time this year (2019). |
|
|
\ No newline at end of file |