From e27299fcc0281a1a55208bd76fc786cb955ff23b Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Sun, 24 May 2015 11:01:33 -0500 Subject: [PATCH] Add Reclaiming The Entire Window as a tmux til. --- README.md | 1 + tmux/reclaiming-the-entire-window.md | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 tmux/reclaiming-the-entire-window.md diff --git a/README.md b/README.md index 39f696a..021fc58 100644 --- a/README.md +++ b/README.md @@ -80,6 +80,7 @@ smart people at [Hashrocket](http://hashrocket.com/). ### tmux - [Organizing Windows](tmux/organizing-windows.md) +- [Reclaiming The Entire Window](tmux/reclaiming-the-entire-window.md) ### vim diff --git a/tmux/reclaiming-the-entire-window.md b/tmux/reclaiming-the-entire-window.md new file mode 100644 index 0000000..a687afd --- /dev/null +++ b/tmux/reclaiming-the-entire-window.md @@ -0,0 +1,19 @@ +# Reclaiming The Entire Window + +If you have attached to a tmux session whose dimensions are being +constrained by another connection, you may find an L-shaped portion of your +window filled with dots. tmux defers to the session with smaller dimensions. +The easiest way to reclaim the entire window for your session is to attach +to the session will forcing all other session to detach. The `-d` flag will +help with that. + +```bash +$ tmux attach-session -d -t my-session +``` + +By detaching all other sessions, you are ensuring that your computers +dimensions are the ones that tmux uses when drawing the window. This is a +great quick fix if you're working on your own, but probably not what you +want to do if you are in a pair programming situation. + +[source](http://stackoverflow.com/questions/7814612/is-there-any-way-to-redraw-tmux-window-when-switching-smaller-monitor-to-bigger)