mirror of
https://github.com/jbranchaud/til
synced 2026-01-05 08:08:02 +00:00
Add Reclaiming The Entire Window as a tmux til.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
19
tmux/reclaiming-the-entire-window.md
Normal file
19
tmux/reclaiming-the-entire-window.md
Normal file
@@ -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)
|
||||
Reference in New Issue
Block a user