Shared Tmux Session Dimension Fix

July 21, 2019
tmux
Estimated Reading Time: 1 minute(s)


I find myself using the terminal in my VS Code editor, along with a full screen terminal. Additionally, I’ll be using a tmux session. Often times when I disconnect my main terminal and use the VS Code one, which has a much smaller size, and reconnect, I’ll find that the session is only partially filling my screen. Like this:

To fix this, you’ll simply have to run the following command in your messed up tmux session:

CTRL + B then SHIFT + D

You’ll see a menu where you can choose a session to terminate:

Now simply select the smaller size session, using the arrow keys to navigate, and press enter and everything should be back to normal.

comments powered by Disqus