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)