tmux: how to adjust the tmux session's width to fit in the terminal panel?

房东的猫 提交于 2019-12-08 07:37:35

问题


when I re-attach a tmux session, the width of the tmux window is still the previous width and padded with white dots:



So my question is how to adjust the tmux width to fit in the terminal panel? The ideal setting would be the tmux session's width is auto-adjusted whenever re-attached.

PS: I am using iterm2 on mac.

EDIT: This is actually answered here: https://stackoverflow.com/a/19280187/1464263


回答1:


Seems like you have another client attached to this session and it's screen width is half your screen width. If you detach that second session those dots should go away.

tmux ls will show you all the sessions.

tmux detach will allow you to detach the session.



来源:https://stackoverflow.com/questions/44829622/tmux-how-to-adjust-the-tmux-sessions-width-to-fit-in-the-terminal-panel

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!