Skip to content

Instantly share code, notes, and snippets.

@gzagatti
Last active May 2, 2018 03:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gzagatti/f0403f6ae117b896dd65 to your computer and use it in GitHub Desktop.
Save gzagatti/f0403f6ae117b896dd65 to your computer and use it in GitHub Desktop.
Break tmux pane to background

from Stack Exchange

Break tmux pane

Select target pane and enter Prefix-:

break-pane -dP

Tmux sends target pane to a window in the background (-d flag) and prints information (-P flag)

Restore session

Select pane below target then enter Prefix-:

join-pane -vs 1:2.0

It tells tmux to split target pane vertically (-v) and to join the source pane (-s) with identifier 1:2.0, where 1 is the pane number, 2 is the window number

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment